ValidationMode enum

Controls when a Field runs its validators automatically.

Configure this on a field via Field.validationMode.

Inheritance
Available extensions

Values

onChange → const ValidationMode

Validates on every value change (default).

Each time Field.value is set to a different value, validation is triggered immediately (or after the debounce delay if configured).

onSubmit → const ValidationMode

Validates only when FormController.trigger or FormController.submit is called explicitly.

Use this mode for fields that should not show errors while the user is still typing.

onBlur → const ValidationMode

Validates once after the field loses focus for the first time.

Calls Field.touch internally; subsequent changes re-validate on every change once the field has been touched.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ValidationMode>
A constant List of the values in this enum, in order of their declaration.