FormState class abstract

A base state interface that all form states must satisfy.

This enables FormCubit to generically read/write status and dirty all fields without knowing the concrete state shape.

Implemented types

Constructors

FormState()

Properties

allErrors → List<String>
All current validation errors across all fields.
no setterinherited
dirtyFieldCount → int
Number of fields that have been touched.
no setterinherited
errorFieldCount → int
Number of fields that have been touched and have errors.
no setterinherited
firstError → String?
The first validation error across all fields, or null if valid.
no setterinherited
formFields → List<Field>
All fields participating in form validation.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isFormValid → bool
Whether every field passes validation.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → BlocStatus
no setter

Methods

copyWithStatus(BlocStatus status) → FormState
Creates a copy with the given status.
makeAllDirty() → FormState
Returns a copy with all fields marked dirty (for submit-time validation).
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