validate method

bool validate ()

Calls InputField.validators to set the errorText. Returns true if all validations succeed.

Implementation

bool validate() {
  setState(() {
    _validate();
  });
  return !hasError;
}