cancelSearchBar method
void
cancelSearchBar()
Cancels the search by clearing the search query and deactivating search mode.
This method clears the search controller, resets the filter search value, and refreshes the list to show all items.
Implementation
void cancelSearchBar() {
searchController.clear();
setState(() {
isSearching = false;
filter.search = '';
filter.skip = 0;
});
pagingController.refresh();
}