ElevarmTypeAheadInputField<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ElevarmTypeAheadInputField
- Available Extensions
Constructors
-
ElevarmTypeAheadInputField({required String label, required T initialData, required FocusNode? focusNode, required TextEditingController? controller, required FutureOr<
Iterable< suggestionsCallback(String pattern), required dynamic itemBuilder(BuildContext context, T item), required void onSuggestionSelected(T suggestion), required String hintText, bool isRequired = false, String? errorText, String? helperText, ElevarmTextInputFieldSize size = ElevarmTextInputFieldSize.md, bool enabled = true, bool intercepting = false, bool autoFlipDirection = false, Widget errorBuilder(BuildContext, Object?)?, Key? key})T> > -
const
Properties
- autoFlipDirection → bool
-
If set to true, in the case where the suggestions box has less than
_SuggestionsBoxController.minOverlaySpace to grow in the desired
direction
, the direction axis will be temporarily flipped if there's more room available in the opposite direction.final - controller → TextEditingController?
-
Controls the text being edited.
final
- enabled → bool
-
If false the text field is "disabled": it ignores taps and its
decoration
is rendered in grey.final - errorBuilder → (Widget Function(BuildContext, Object?)?)
-
final
- errorText → String?
-
The error text if any.
final
- focusNode → FocusNode?
-
Defines the keyboard focus for this widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
The helper text.
final
- hintText → String
-
The hint text.
final
- initialData → T
-
Initial value of
T
final - intercepting → bool
-
Used to overcome Flutter issue 98507
Most commonly experienced when placing the
TypeAheadFormField
on a google map in Flutter Web.final - isRequired → bool
-
Whether the field is required or not.
final
- itemBuilder → dynamic Function(BuildContext context, T item)
-
Called for each suggestion returned by suggestionsCallback to build the
corresponding widget.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
The label above the input field.
final
- onSuggestionSelected → void Function(T suggestion)
-
Called when a suggestion is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → ElevarmTextInputFieldSize
-
The text field size.
final
-
suggestionsCallback
→ FutureOr<
Iterable< Function(String pattern)T> > -
Called with the search pattern to get the search suggestions.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ElevarmTypeAheadInputField< 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