QueryContext<T> class
final
Input supplied to a query function.
Constructors
-
QueryContext({required QueryClient client, required QueryKey<
T> key, required Map<String, Object?> meta, required QueryFetchMeta? fetchMeta, required QueryCancelToken cancelToken}) - Creates the context passed to a query function.
Properties
- cancelToken → QueryCancelToken
-
Marks the underlying operation as cancellation-aware.
no setter
- client → QueryClient
-
The client executing the query.
final
- fetchMeta → QueryFetchMeta?
-
Metadata for this fetch invocation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
key
→ QueryKey<
T> -
The query's cache key.
final
-
meta
→ Map<
String, Object?> -
User metadata from the query definition.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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