QueryOptions<T> class final

A reusable, strongly typed query definition.

Constructors

QueryOptions({required QueryKey<T> key, required QueryFunction<T> query, QueryPolicy policy = const QueryPolicy(), QueryInitialData<T>? initialData, Map<String, Object?> meta = const <String, Object?>{}, QueryDataMerger<T>? merge})
Creates a reusable typed query definition.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
initialData → QueryInitialData<T>?
Optional data used before the first fetch.
final
key → QueryKey<T>
The query's cache key.
final
merge → QueryDataMerger<T>?
Optional custom structural-sharing merger.
final
meta → Map<String, Object?>
User metadata passed to the query function.
final
policy → QueryPolicy
Policy overrides for this query.
final
query → QueryFunction<T>
The function that fetches data.
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