AutoSuggestBoxItem<T> class

An item used in AutoSuggestBox

Constructors

AutoSuggestBoxItem({required T? value, required String label, Widget? child, ValueChanged<bool>? onFocusChange, VoidCallback? onSelected, String? semanticLabel})
Creates an auto suggest box item

Properties

child Widget?
The widget to be shown.
final
hashCode int
The hash code for this object.
no setteroverride
label String
The label that identifies this item
final
onFocusChange ValueChanged<bool>?
Called when this item's focus is changed.
final
onSelected VoidCallback?
Called when this item is selected
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
Semantic label for the input.
final
value → T?
The value attached to this item
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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