set method
- dynamic context
Implementation
bool set(context) {
if (!_formKey.currentState!.validate()) {
//removed for now since formdata validate already shows problem
// _alert(context);
return false;
}
for (var i = 0; i < textfieldList.length; i++) {
json[name]![textfieldList[i].varName] =
textfieldList[i].postProcess(_textfieldControllerList[i].text);
}
children.forEach((child) {
json[name]![child.name] = child.json;
});
onSet?.call(json);
return true;
}