validate method

bool validate()

return True if the form is valid.

Implementation

bool validate() {
  return _formKey.currentState?.validate() ?? false;
}