CachePolicy enum

The cache policy to be used for all queries and mutations.

Inheritance
Available extensions

Values

cacheFirst → const CachePolicy

Return result from cache. Only fetch from network if cached result is not available.

cacheAndNetwork → const CachePolicy

Return result from cache first (if it exists), then return network result once it's available.

cacheOnly → const CachePolicy

Return result from cache if available, fail otherwise.

noCache → const CachePolicy

Return result from network, fail if network call doesn't succeed, don't save to cache.

networkOnly → const CachePolicy

Return result from network, fail if network call doesn't succeed, save to cache.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

values → const List<CachePolicy>
A constant List of the values in this enum, in order of their declaration.