InputFieldState<T> class

The current state of an InputField.

Mixed in types




context BuildContext
The location in the tree where this widget builds. [...]
read-only, inherited
errorText String
The current validation error returned by the InputField.validator callback, or null if no errors have been triggered. This updates on reset or validate.
hasError bool
Returns true if this field has any validation errors.
hashCode int
The hash code for this object. [...]
read-only, inherited
mounted bool
Whether this State object is currently in a tree. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value ↔ T
read / write
wantKeepAlive bool
Whether the current instance should be kept alive. [...]
read-only, override
widget InputField<T>
The current configuration. [...]
read-only, inherited


build(BuildContext context) Widget
This method must not be called directly. Use InputField.buildInputField() instead.
buildInputField(BuildContext context, Widget builder) Widget
deactivate() → void
Called when this object is removed from the tree. [...]
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
didChange(T newValue) → void
Updates this field's state to the new value. Useful for responding to child widget changes, e.g. Slider's Slider.onChanged argument. [...]
didChangeDependencies() → void
Called when a dependency of this State object changes. [...]
@mustCallSuper, @protected, inherited
didUpdateWidget(covariant InputField<T> oldWidget) → void
Called whenever the widget configuration changes. [...]
@mustCallSuper, @protected, inherited
dispose() → void
Called when this object is removed from the tree permanently. [...]
@mustCallSuper, @protected, inherited
initState() → void
Initializes the input field by automatically registering itself to an InputForm ancestor (if there is one). [...]
@mustCallSuper, override
isEnabled() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload. [...]
@mustCallSuper, @protected, inherited
reset() → void
Resets the field to its initial value and clears error indication. Also invokes onChanged().
save() → void
Saves a changed field value by invoking onSave() and writing value at path into map. [...]
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed. [...]
@protected, inherited
setValue(T newValue) → void
Sets the value associated with this form field. [...]
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
toString({DiagnosticLevel minLevel =}) String
A string representation of this object. [...]
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
updateKeepAlive() → void
Whenever wantKeepAlive should change then updateKeepAlive must be called.
validate() bool
Calls InputField.validators to set the errorText. Returns true if all validations succeed.


operator ==(Object other) bool
The equality operator. [...]