SearchRecommendationController<T> class
Controller to imperatively interact with SearchRecommendationWidget.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearSelection(
) → void - Clears the current selection and text.
-
getSelectedItem(
) → T? - Returns the first selected item (for single-select use-cases).
-
getSelectedItems(
) → List< T> - Returns all selected items (for multi-select use-cases).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setSelectedItem(
T item) → void - Programmatically sets a single selected item.
-
setSelectedItems(
List< T> items) → void - Programmatically sets multiple selected items (only relevant when SearchRecommendationWidget.allowMultiSelect is true).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited