setData method
Implementation
void setData(Map<String, dynamic> data) {
// Save the data from the controllers
formValueMap = data;
// Reset the form status
setValidationMessage(null);
// Reset each field status
for (var fieldName in data.keys) {
fieldsValidationMessages.remove(fieldName);
}
// Set the new form status
setFormStatus();
// Rebuild the UI
notifyListeners();
}