clearError method
Clears the validation errors for all FormFields in this Form without resetting their values.
See also:
- FormFieldState.clearError, which clears the error for a single form field.
Implementation
void clearError() {
for (final FormFieldState<dynamic> field in _fields) {
field._clearErrorInternal();
}
_fieldDidChange();
}