SearchFunction<T> class
A highly efficient search functionality for Flutter applications that combines instant local search with fallback remote search capabilities.
Constructors
Properties
-
allData
→ List<
T> -
Get current combined data list
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
resultsStream
→ Stream<
SearchResult< T> > -
Get stream of search results
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addItems(
List< T> items) → void - Add items to local data cache
-
clearLocalData(
) → void - Clear local data cache
-
dispose(
) → void - Close the search function and release resources
-
forceRemoteSearch(
String query) → void - Force a remote search even if local results exist
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
String query) → void - Search function that combines instant local and debounced remote search
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited