validate()
Validates the current form values according to the validation schema.
validate(): TSchema | undefined;
Notes
- This method returns the validated fields as a plain object, and also updates the errors and valid properties.
- In
automode (default), after this method has been called at least once, fields are also validated automatically whenever a field is updated using set(). To stop automatic validation until this method is called again, use the clear() method. - In
demandmode, this method does not enable automatic validation. - In
immediatemode, fields are always validated automatically, regardless of whether this method has been called.
Related
class FormState
An object that contains form field data, with validation rules.type FormState.ValidationMode static
A type that determines how form field validation is triggered.
