QueryBase<T, State extends QueryState<T>> class abstract

An Interface for both Query and InfiniteQuery.

Properties

config QueryConfig
The config for this specific query.
final
hashCode int
The hash code for this object.
no setterinherited
hasListener bool
Weather the query stream has any listeners.
no setter
key String
The key used to store and access the query. Encoded using jsonEncode.
final
result Future<State>
Get the result of calling the queryFn.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stale bool
Whether the current query is marked as stale and therefore requires a refetch.
no setter
state → State
The current state of the query.
no setter
stream Stream<State>
Stream the state of the query.
no setter
unencodedKey Object
The original key.
final

Methods

close() Future<void>
Closes the stream and therefore starts the delete timer.
deleteQuery({bool deleteStorage = false}) → void
Delete the query and query key from cache
invalidateQuery() → void
Mark query as stale.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refetch() Future<State>
Refetch the query immediately.
toString() String
A string representation of this object.
inherited
update(UpdateFunc<T> updateFn) → void
Update the current Query data.

Operators

operator ==(Object other) bool
The equality operator.
inherited