clearResults method
void
clearResults()
inherited
Cancels any pending search, invalidates in-flight loads, and clears the current results.
Consider calling this when the search query is cleared.
Implementation
void clearResults() {
_searchDebouncer.cancel();
// Bump the generation so an already-running load is treated as superseded
// and cannot repopulate the cleared results when its response arrives.
_loadGeneration += 1;
value = PagedValue<Key, Value>(items: []);
}