selectItem method

void selectItem(
  1. T item
)

Selects an item from the search results. This will hide the overlay, call the onItemSelected callback, and optionally clear the search.

Implementation

void selectItem(T item) {
  _onItemSelected?.call(item);
  hideOverlay();
  unfocus();
}