FormeFluentAutoSuggestBox<T extends Object> class

Inheritance

Constructors

FormeFluentAutoSuggestBox({Key? key, String? name, T? initialValue, FormeAsyncValidator<T?>? asyncValidator, Duration? asyncValidatorDebounce, AutovalidateMode? autovalidateMode, FormeFieldDecorator<T?>? decorator = const FormeFluentFormRowDecorator(padding: EdgeInsets.zero), bool enabled = true, FocusNode? focusNode, FormeFieldInitialized<T?>? onInitialized, FormeFieldSetter<T?>? onSaved, FormeFieldStatusChanged<T?>? onStatusChanged, int? order, bool quietlyValidate = false, bool readOnly = false, bool requestFocusOnUserInteraction = true, FormeFieldValidationFilter<T?>? validationFilter, FormeValidator<T?>? validator, bool autofocus = false, bool clearButtonEnabled = true, TextEditingController? controller, Color? cursorColor, double? cursorHeight, Radius cursorRadius = const Radius.circular(2.0), double cursorWidth = 1.5, BoxDecoration? decoration, bool enableKeyboardControls = true, BoxDecoration? foregroundDecoration, Color? highlightColor, List<TextInputFormatter>? inputFormatters, required List<AutoSuggestBoxItem<T>> items, Brightness? keyboardAppearance, Widget? leadingIcon, double maxPopupHeight = kAutoSuggestBoxPopupMaxHeight, WidgetBuilder? noResultsFoundBuilder, OnChangeAutoSuggestBox? onChanged, String? placeholder, TextStyle? placeholderStyle, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight, bool? showCursor, AutoSuggestBoxSorter<T>? sorter, TextStyle? style, TextInputAction? textInputAction, Widget? trailingIcon, Color? unfocusedColor})

Properties

asyncValidator → FormeAsyncValidator<T?>?
used to perform an async validation
finalinherited
asyncValidatorDebounce Duration?
not worked when validate manually
finalinherited
autofocus bool
final
autovalidateMode AutovalidateMode
finalinherited
builder → FormeFieldBuilder<T?>
finalinherited
clearButtonEnabled bool
final
controller TextEditingController?
final
cursorColor Color?
final
cursorHeight double?
final
cursorRadius Radius
final
cursorWidth double
final
decoration BoxDecoration?
final
decorator → FormeFieldDecorator<T?>?
used to decorate field
finalinherited
enabled bool
whether field is enabled,
finalinherited
enableKeyboardControls bool
final
fieldType Type
no setterinherited
focusNode FocusNode?
finalinherited
foregroundDecoration BoxDecoration?
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
final
initialValue → T?
initial value
finalinherited
inputFormatters List<TextInputFormatter>?
final
items List<AutoSuggestBoxItem<T>>
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardAppearance Brightness?
final
leadingIcon Widget?
final
maxPopupHeight double
final
name String?
field name
finalinherited
noResultsFoundBuilder WidgetBuilder?
final
onChanged → OnChangeAutoSuggestBox?
final
onInitialized → FormeFieldInitialized<T?>?
called immediately after FormeFieldState.initStatus
finalinherited
onSaved → FormeFieldSetter<T?>?
finalinherited
onStatusChanged → FormeFieldStatusChanged<T?>?
listen field status change
finalinherited
order int?
used to support Forme.autovalidateByOrder
finalinherited
placeholder String?
final
placeholderStyle TextStyle?
final
quietlyValidate bool
quietlyValidate
finalinherited
readOnly bool
finalinherited
requestFocusOnUserInteraction bool
whether request focus when field value changed
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollPadding EdgeInsets
final
selectionHeightStyle BoxHeightStyle
final
selectionWidthStyle BoxWidthStyle
final
showCursor bool?
final
sorter → AutoSuggestBoxSorter<T>?
final
style TextStyle?
final
textInputAction TextInputAction?
final
trailingIcon Widget?
final
unfocusedColor Color?
final
validationFilter → FormeFieldValidationFilter<T?>?
used to determine whether perform a validation
finalinherited
validator → FormeValidator<T?>?
sync validator
finalinherited

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.
inherited
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, int wrapWidth = 65}) 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