getSuggestions method
- String query
Provides search suggestions based on partial input.
Returns a list of suggested search queries or items based on the partial
query. This method is called as the user types in the search field to
provide real-time suggestions.
The default implementation returns an empty list. Override this method to provide custom suggestion logic.
Implementation
Future<List<SearchItem>> getSuggestions(String query) async {
return [];
}