FormState
Manages mutable form state and validation status for a target value object T.
Provides fields tracking (dirtyFields, touchedFields), validation triggers (onFieldChange, onFieldBlur), and async form submission helpers.
Parameters
The type of value or data class held by the form state.
The starting value of the form.
The ValixValidator compiled instance used to validate form data.
Strategy determining when validation is triggered (ValidationMode.OnChange, ValidationMode.OnBlur, etc.).
If true, validation terminates immediately upon encountering the first error.
Constructors
Properties
Set of field names that have been modified.
Returns current errors indexed by property field name.
true if the form submission has been triggered.
true while the form submission callback is currently executing.
Set of field names that have lost focus.
The current ValidationResult.
Functions
Clears all validation errors while keeping values intact.
Triggers field blur tracking and executes validation if mode is ValidationMode.OnBlur.
Triggers field update and executes validation if mode is ValidationMode.OnChange.
Resets the form state to initialValue and clears all error/dirty state.