ResolvedQueryOptions<T> class final

Fully resolved options owned by one query cache entry.

Constructors

ResolvedQueryOptions({required QueryKey<T> key, required QueryFunction<T>? query, required QueryFreshness freshness, required Duration gcTime, required QueryRetry retry, required Duration retryDelay(int failureCount, Object _), required QueryNetworkMode networkMode, required QueryRefetchPolicy refetchOnMount, required QueryRefetchPolicy refetchOnFocus, required QueryRefetchPolicy refetchOnReconnect, required Duration? refetchInterval, required bool refetchInBackground, required bool enabled, required bool structuralSharing, required QueryInitialData<T>? initialData, required Map<String, Object?> meta, required QueryDataMerger<T>? merge})
Creates a complete query runtime configuration.
const

Properties

enabled → bool
Whether observers may fetch automatically.
final
freshness → QueryFreshness
The resolved freshness policy.
final
gcTime → Duration
How long an unused query remains cached.
final
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
networkMode → QueryNetworkMode
The resolved network behavior.
final
query → QueryFunction<T>?
The function that fetches data, if registered.
final
refetchInBackground → bool
Whether interval refetches may run without focus.
final
refetchInterval → Duration?
Optional periodic refetch interval.
final
refetchOnFocus → QueryRefetchPolicy
Refetch behavior after focus returns.
final
refetchOnMount → QueryRefetchPolicy
Refetch behavior when observers mount.
final
refetchOnReconnect → QueryRefetchPolicy
Refetch behavior after connectivity returns.
final
retry → QueryRetry
The resolved retry policy.
final
retryDelay → Duration Function(int failureCount, Object _)
Computes the delay before each retry.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
structuralSharing → bool
Whether equal subtrees preserve previous references.
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