LoFieldState<TKey, TValue> class

Constructors

LoFieldState({required TKey loKey, TValue? initialValue, List<LoFieldBaseValidator<TValue>> validators = const [], required ValueChanged<TValue> onChanged, Duration? debounceTime})

Properties

debounceTime → Duration?
The Duration used to debounce changes.
final
error ↔ String?
The current error message.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
initialValue → TValue?
The initial value that makes LoFieldState.status pure.
final
loKey → TKey
Unique key for this across the form.
final
onChanged → ValueChanged<TValue>
Function that should be called with every change to update the state accordingly.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → LoStatus
The current field status:
no setter
touched ↔ bool
An indicator whether the field has been focused or not.
getter/setter pair
validators → List<LoFieldBaseValidator<TValue>>
List of the validators to run on each change.
final
value ↔ TValue?
The current value, initialized as initialValue.
getter/setter pair

Methods

dispose() → void
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