DynamicFormState class

Snapshot of form state exposed to listeners.

Annotations

Constructors

DynamicFormState({required Map<String, dynamic> values, required Map<String, String> errors, required bool isValid, required bool isDirty, required bool isSubmitting, required bool isValidating})
Creates a DynamicFormState.
const
DynamicFormState.empty()
Empty initial state.
factory

Properties

errors → Map<String, String>
Current field errors keyed by field key.
final
hashCode → int
The hash code for this object.
no setterinherited
isDirty → bool
Whether any field has been modified since last reset.
final
isSubmitting → bool
Whether a submit is in progress.
final
isValid → bool
Whether the form currently has no errors.
final
isValidating → bool
Whether async validation is running.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, dynamic>
Current field values keyed by field key.
final

Methods

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

Operators

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