selectItem method
void
selectItem(
- T item
Selects an item from the search results. This will store the selected item, hide the overlay, call the onItemSelected callback, and optionally clear the search.
Implementation
void selectItem(T item) {
_selectedItem = item;
_onItemSelected?.call(item);
hideOverlay();
unfocus();
notifyListeners();
}