closeSearch method
void
closeSearch()
Collapses the search bar back to the tab view.
Equivalent to setting isSearchActive: false on the widget. Also
clears searchFocused if the keyboard was visible.
Implementation
void closeSearch() {
if (!_isSearchOpen) return; // idempotent
_isSearchOpen = false;
if (_searchFocused) _searchFocused = false;
notifyListeners();
}