FormeFieldState<T> class
- Inheritance
-
- Object
- State<
FormeField< T> > - FormeFieldState
Constructors
Properties
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
- enabled ↔ bool
-
set field enable or not
getter/setter pair
- errorText ↔ String?
-
get errorText
getter/setter pair
- focusNode → FocusNode
-
get current widget's focus node or create a new one
no setter
- form → FormeState?
-
get form state
no setter
- hasFocus → bool
-
whether field has been focused
no setter
- hasFocusNode → bool
-
whether field has a focusnode
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → T
-
get initialValue
no setter
- isCustomValidation → bool
-
whether current validation is set via errorText
no setter
- isNullable → bool
-
whether value can be nullable or not
no setter
- isValueChanged → bool
-
whether value is changed after initialed
no setter
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- name → String?
-
no setter
-
oldValue
→ FormeOptional<
T> ? -
get previous value
no setter
- order → int?
-
no setter
- readOnly ↔ bool
-
set field readonly or not
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
→ FormeFieldStatus<
T> -
get current status
no setter
- type → Type
-
get generic type
no setter
- validation → FormeFieldValidation
-
get current validation state
no setter
- value ↔ T
-
equals to FormeFieldState.didChange
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
-
addVisitor(
FormeFieldVisitor< T> visitor) → bool - add visitor
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
deactivate(
) → void -
Called when this object is removed from the tree.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
defaultBuild(
) → Widget -
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
-
initStatus(
) → void - this method will be called only once in state's lifecircle,immediately called after initState
-
isValueEquals(
T oldValue, T newValue) → bool - is value equals
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onStatusChanged(
FormeFieldChangedStatus< T> status) → void - override this method if you want to listen status changed
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
removeVisitor(
FormeFieldVisitor< T> visitor) → bool - remove visitor
-
requestFocus(
) → void -
requestFocusOnUserInteraction(
) → void - request focus if user interacted
-
reset(
) → void - reset field
-
save(
) → void - save field
-
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
override
-
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
-
unfocus(
) → void -
validate(
{bool quietly = false}) → Future< FormeFieldValidateSnapshot< T> > - this method is used to manually validate
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited