QueryObserver<T> class final

Cache entry and framework-independent observer. Subscriptions own no server I/O.

Properties

client → QueryClient
final
hashCode → int
The hash code for this object.
no setterinherited
isActive → bool
no setter
key → QueryKey
no setter
options ↔ QueryOptions<T>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapshot ↔ QuerySnapshot<T>
getter/setter pair

Methods

cancel() → void
fetch(QueryOptions<T> definition, {bool force = false}) → Future<T>
isStale([QueryOptions<T>? definition]) → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(void notify(), {QueryOptions<T>? definition}) → void Function()
Subscribe on the client; unsubscribe releases polling and schedules eviction. Last unsubscribe cancels in-flight requests and prevents late cache writes.
toString() → String
A string representation of this object.
inherited

Operators

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