validate method

bool validate([
  1. Map<String, dynamic>? values
])

Calls EasyFormField.validator to set the errorText. Returns true if there were no errors.

See also:

Implementation

bool validate([Map<String, dynamic>? values]) {
  setState(() {
    _validate(values);
  });
  return !hasError;
}