autovalidateMode property

AutovalidateMode autovalidateMode
getter/setter pair

Listen to the InjectedForm and rebuild when it is notified. Used to enable/disable this form field auto validation and update its error text.

If AutovalidateMode.onUserInteraction this form fields will only auto-validate after its content changes, if AutovalidateMode.always they will auto validate even without user interaction and if AutovalidateMode.disabled the auto validation will be disabled.

It defaults to AutovalidateMode.disabled.

Implementation

// late final rebuild = _RebuildForm(this);

/// Used to enable/disable this form field auto validation and update its
/// error text.
///
///
/// If [AutovalidateMode.onUserInteraction] this form fields will only
/// auto-validate after its content changes, if [AutovalidateMode.always] they
/// will auto validate even without user interaction and
/// if [AutovalidateMode.disabled] the auto validation will be disabled.
///
/// It defaults to [AutovalidateMode.disabled].
late AutovalidateMode autovalidateMode;