FabrikForm<T> class

Represents a form composed of multiple named FabrikFields.

Provides centralized access to field values, validation state, and form-wide actions like updating values or marking fields as touched.

Constructors

FabrikForm.new(Map<String, FabrikField<T>> _fields)
Creates a new FabrikForm from a map of field keys to FabrikFields.

Properties

errors Map<String, String?>
The current validation errors for all fields in the form.
no setter
hashCode int
The hash code for this object.
no setterinherited
isDirty bool
Whether any field in the form has changed from its initial value.
no setter
isTouched bool
Whether the user has interacted with any field in the form.
no setter
isValid bool
Whether all fields in the form are valid.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, dynamic>
The current values of all fields in the form.
no setter

Methods

get<T2>(String key) FabrikField<T2>
Retrieves a typed FabrikField by key.
markAllTouched() → void
Marks all fields as touched and revalidates them.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update<T3>(String key, T3 value) → void
Updates the value of a specific field by key.

Operators

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