validate method

bool validate()

Validates every EasyFormField that is a descendant of this EasyForm, and returns true if there are no errors.

The form will rebuild to report the results.

Implementation

bool validate() {
  _resetFocus();
  _resetErrors();

  _hasInteractedByUser = true;
  _forceRebuild();
  final EasyFormFieldState<dynamic>? errorField = _validate();

  _focusField(errorField);

  return errorField == null;
}