SearchThenSelectField<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SearchThenSelectField
Constructors
-
SearchThenSelectField({Key? key, bool autofocus = false, FocusNode? focusNode, TextEditingController? controller, InputDecoration? decoration, bool enabled = true, T? initialValue, double itemsHeight = 50.0, List<
TextInputFormatter> ? inputFormatters, TextInputAction? textInputAction, TextInputType? textInputType, void onSelected(T? value)?, void onSubmit(T? value)?, Duration debounceDuration = const Duration(milliseconds: 300), required Future<List< search(String query), required Widget itemBuilder(BuildContext context, T value), required String itemStringBuilder(T value), required Widget loadingBuilder(BuildContext context), required Widget emptyBuilder(BuildContext context), required Widget errorBuilder(BuildContext context)})T> > -
const
Properties
- autofocus → bool
-
final
- controller → TextEditingController?
-
controller for underlying text field
final
- debounceDuration → Duration
-
final
- decoration → InputDecoration?
-
text field's decoration
final
- emptyBuilder → Widget Function(BuildContext context)
-
empty view builder
final
- enabled → bool
-
final
- errorBuilder → Widget Function(BuildContext context)
-
error view builder
final
- focusNode → FocusNode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → T?
-
initial value of the field
final
-
inputFormatters
→ List<
TextInputFormatter> ? -
final
- itemBuilder → Widget Function(BuildContext context, T value)
-
item builder callback
final
- itemsHeight → double
-
height of suggestions item
final
- itemStringBuilder → String Function(T value)
-
get item title, used for showing in text field when focus lost
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- loadingBuilder → Widget Function(BuildContext context)
-
loading view builder
final
- onSelected → (void Function(T? value)?)
-
item selection callback
final
- onSubmit → (void Function(T? value)?)
-
field submit callback
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
search
→ Future<
List< Function(String query)T> > -
search callback
final
- textInputAction → TextInputAction?
-
final
- textInputType → TextInputType?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SearchThenSelectField< 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