SearchResult<T> class
Class to hold search results
Constructors
-
SearchResult.new({required List<
T> items, required bool isLoading, required String query, String? error, SearchSource? source})
Properties
- error → String?
-
Error message if search failed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
Whether search is in progress
final
- isLocal → bool
-
Check if this result is from local search
no setter
- isRemote → bool
-
Check if this result is from remote search
no setter
-
items
→ List<
T> -
List of search result items
final
- query → String
-
Search query that produced these results
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → SearchSource?
-
Source of the search results
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited