QueryCache class final

Storage and event boundary for query state machines.

Constructors

QueryCache()

Properties

all → Iterable<Query>
All queries currently in the cache.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Query query) → void
Adds query unless its key is already cached.
clear() → void
Removes every cached query.
get<T>(String canonicalKey) → Query<T>?
Returns a cached query when its data type matches T.
getAny(String canonicalKey) → Query?
Returns a cached query without checking its data type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(QueryCacheEvent event) → void
Sends event to current subscribers.
remove(Query query) → void
Removes and destroys query when it is the cached instance.
subscribe(void listener(QueryCacheEvent event)) → QueryDispose
Subscribes to cache events.
toString() → String
A string representation of this object.
inherited

Operators

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