FormValidationMode enum

Defines when form field validation should occur during the component lifecycle.

This enumeration controls the timing of validation execution, allowing fine-grained control over when validation logic runs. Different validation modes can be used to optimize user experience and performance.

Inheritance
Available extensions

Values

initial → const FormValidationMode

Validation occurs when the field is first created or initialized.

This mode runs validation immediately when a form field is created, which can be useful for fields with default values that need immediate validation feedback.

changed → const FormValidationMode

Validation occurs when the field value changes.

This is the most common validation mode, providing immediate feedback as users interact with form fields. Validation runs after each value change event.

submitted → const FormValidationMode

Validation occurs when the form is submitted.

This mode defers validation until form submission, reducing interruptions during user input. Useful for complex validations that should only run when the user attempts to submit the form.

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<FormValidationMode>
A constant List of the values in this enum, in order of their declaration.