stopSearch method

void stopSearch()

Hide the search bar.

Usually you don't need to call this method implicitly.

Implementation

void stopSearch() {
  isSearchMode.value = false;
  if (clearOnClose) {
    textEditingController.text = '';
  }
  onClosed?.call();
}