errors property
Gets all errors of the array.
Contains all the errors of the array and the child errors.
Implementation
@override
Map<String, dynamic> get errors {
final allErrors = <String, dynamic>{};
allErrors.addAll(_errors);
_controls.asMap().entries.forEach((entry) {
final control = entry.value;
final name = entry.key.toString();
if (control.enabled && control.hasErrors) {
allErrors[name] = control.errors;
}
});
return allErrors;
}