Cache class

Constructors

Cache({Store dataStore, Map<String, TypePolicy> typePolicies: const {}, bool addTypename: true, Map<String, Map<String, Map<String, dynamic>>> seedOptimisticPatches})

Properties

addTypename bool
final
typePolicies Map<String, TypePolicy>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

readFragment(ReadFragmentOptions options) Map<String, dynamic>
readQuery(ReadQueryOptions options) Map<String, dynamic>
removeOptimisticPatch(String id) → void
watchQuery(ReadQueryOptions options) Stream<Map<String, dynamic>>
writeFragment(WriteFragmentOptions options, [bool optimistic = false, String queryId]) → void
writeQuery(WriteQueryOptions options, [bool optimistic = false, String queryId]) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited