FormField<T> class

Reactive state for a single form field.

Constructors

FormField(String _name, FieldDef def)

Properties

dirty bool
Whether the value differs from initial.
no setter
error String?
Current error message.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Field name.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
touched bool
Whether the field has been touched (focused then blurred).
no setter
value ↔ T?
Current value.
getter/setter pair
valueRef → Ref<T?>
Underlying ref.
no setter

Methods

call() → T?
Current value as callable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset to initial value.
toString() String
A string representation of this object.
inherited
touch() → void
Mark as touched.
validate() bool
Validate the field.

Operators

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