ElevarmAutocompleteInputField<T> class
Elevarm UI's autocomplete input field.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ElevarmAutocompleteInputField
- Available Extensions
Constructors
-
ElevarmAutocompleteInputField({required List<
ElevarmAutocompleteInputFieldOption< options, required void onChanged(T? value), String? label, String? hintText, String? helperText, T? initialValue, IconData checkIconAssetName = ElevarmIconsOutline.check, IconData suffixIconAssetName = ElevarmIconsOutline.chevron_down, double maxOptionsHeight = 320.0, String? errorText, ElevarmTextInputFieldSize textInputSize = ElevarmTextInputFieldSize.md, bool enabled = true, bool isRequired = false, void onTextChanged(String? value)?, Key? key})T> > -
const
Properties
- checkIconAssetName → IconData
-
Check icon asset name for selected option.
final
- enabled → bool
-
If false the text field is "disabled": it ignores taps and its
decoration
is rendered in grey.final - errorText → String?
-
The error text if any.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
The helper text.
final
- hintText → String?
-
The hint text.
final
- initialValue → T?
-
The initial value.
final
- isRequired → bool
-
Whether the field is required or not.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
The label above the input field.
final
- maxOptionsHeight → double
-
Maximum height for the options view.
final
- onChanged → void Function(T? value)
-
The callback when value is changed.
final
- onTextChanged → (void Function(String? value)?)
-
The callback when ElevarmTextInputField value is changed.
final
-
options
→ List<
ElevarmAutocompleteInputFieldOption< T> > -
The autocomplete options.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffixIconAssetName → IconData
-
Suffix icon asset name.
final
- textInputSize → ElevarmTextInputFieldSize
-
The text field size.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ElevarmAutocompleteInputField< 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