FormeFieldState<T> class
- Inheritance
-
- Object
- State<
FormeField< T> > - FormeFieldState
Constructors
Properties
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
-
controller
↔ FormeFieldController<
T> -
latefinal
- enabled ↔ bool
-
getter/setter pair
- errorText → String?
-
no setter
- focusNode ↔ FocusNode
-
get current widget's focus node
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → T
-
get initialValue
no setter
- isValueChanged → bool
-
no setter
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- name → String
-
no setter
- oldValue → T?
-
no setter
- order → int
-
no setter
- readOnly ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ T
-
getter/setter pair
-
widget
→ FormeField<
T> -
The current configuration.
no setterinherited
Methods
-
activate(
) → void -
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
afterInitiation(
) → void - called after FormeFieldController created
-
beforeInitiation(
) → void - called before FormeFieldController created
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
compareValue(
T a, T b) → bool - override this method if default compare can not meet your needs
-
createFormeFieldController(
) → FormeFieldController< T> - create FormeFieldController , this method will only called once in field's lifecycle
-
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChange(
T newValue) → void -
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
override
-
didUpdateWidget(
covariant FormeField< T> oldWidget) → void -
Called whenever the widget configuration changes.
override
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
override
-
initState(
) → void -
Called when this object is inserted into the tree.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEnableChanged(
bool enable) → void - override this method if you want to listen enable-state change
-
onFocusChanged(
bool hasFocus) → void - override this method if you want to listen focus changed
-
onReadonlyChanged(
bool readOnly) → void - override this method if you want to listen readonly-state change
-
onValidationChanged(
FormeFieldValidation validation) → void - override this method if you want to listen validation changed
-
onValueChanged(
T value) → void - override this method if you want to listen value changed
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
requestFocusOnUserInteraction(
) → void -
reset(
) → void -
save(
) → void -
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
inherited
-
setValue(
T value) → void -
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
updateFieldValueInDidUpdateWidget(
FormeField< T> oldWidget) → void - when you want to update value in didUpdateWidget , you should override this method rather than override didUpdateWidget
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited