SearchableDropdownController<T> class
Controls a SearchableDropdownField programmatically.
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
-
stateNotifier
→ ValueNotifier<
DropdownState< T> > -
Notifies listeners when loading state, selected item, or filtered items change.
final
Methods
-
attach(
{VoidCallback? open, VoidCallback? close, VoidCallback? clear}) → void - Attaches callbacks from the widget so the controller can operate it.
-
clear(
) → void - Clears the current selection if it is attached to a widget.
-
clearSelection(
) → void - Clears the selected item in the controller state.
-
close(
) → void - Closes the dropdown if it is attached to a widget.
-
dispose(
) → void - Disposes the internal notifier.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → void - Opens the dropdown if it is attached to a widget.
-
select(
T item) → void - Marks an item as selected in the controller state.
-
setLoading(
bool value) → void - Updates the loading state used by async item sources.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateItems(
List< T> items) → void - Replaces the currently visible items.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited