FormeField<T> class

Inheritance

Constructors

FormeField({Key? key, FormeValidator<T>? validator, String? name, bool readOnly = false, required FormeFieldBuilder<T> builder, bool enabled = true, required T initialValue, AutovalidateMode? autovalidateMode, int? order, bool requestFocusOnUserInteraction = true, FormeFieldStatusChanged<T>? onStatusChanged, FormeFieldInitialized<T>? onInitialized, FormeFieldSetter<T>? onSaved, bool quietlyValidate = false, Duration? asyncValidatorDebounce, FormeAsyncValidator<T>? asyncValidator, FormeFieldValidationFilter<T>? validationFilter, FocusNode? focusNode, FormeFieldDecorator<T>? decorator})
const
FormeField.allFields({required Key? key, required String? name, required bool readOnly, required FormeFieldBuilder<T> builder, required bool enabled, required T initialValue, required int? order, required bool requestFocusOnUserInteraction, required FormeFieldStatusChanged<T>? onStatusChanged, required FormeFieldInitialized<T>? onInitialized, required FormeFieldSetter<T>? onSaved, required bool quietlyValidate, required Duration? asyncValidatorDebounce, required FormeValidator<T>? validator, required FormeAsyncValidator<T>? asyncValidator, required AutovalidateMode? autovalidateMode, required FormeFieldValidationFilter<T>? validationFilter, required FocusNode? focusNode, required FormeFieldDecorator<T>? decorator})
const

Properties

asyncValidator FormeAsyncValidator<T>?
used to perform an async validation
final
asyncValidatorDebounce Duration?
not worked when validate manually
final
autovalidateMode AutovalidateMode
final
builder FormeFieldBuilder<T>
final
decorator FormeFieldDecorator<T>?
used to decorate field
final
enabled bool
whether field is enabled,
final
fieldType Type
no setter
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
initialValue → T
initial value
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
name String?
field name
final
onInitialized FormeFieldInitialized<T>?
called immediately after FormeFieldState.initStatus
final
onSaved FormeFieldSetter<T>?
final
onStatusChanged FormeFieldStatusChanged<T>?
listen field status change
final
order int?
used to support Forme.autovalidateByOrder
final
quietlyValidate bool
quietlyValidate
final
readOnly bool
final
requestFocusOnUserInteraction bool
whether request focus when field value changed
final
runtimeType Type
A representation of the runtime type of the object.
no setteroverride
validationFilter FormeFieldValidationFilter<T>?
used to determine whether perform a validation
final
validator FormeValidator<T>?
sync validator
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() FormeFieldState<T>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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

Static Methods

of<T>(BuildContext context) FormeFieldState<T>?