FetchPolicy class

Inheritance
  • Object
  • EnumClass
  • FetchPolicy

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
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

Static Properties

serializer → Serializer<FetchPolicy>
no setter
values → BuiltSet<FetchPolicy>
no setter

Static Methods

valueOf(String name) FetchPolicy

Constants

CacheAndNetwork → const FetchPolicy
Return result from cache first (if it exists), then return network result once it's available.
CacheFirst → const FetchPolicy
Return result from cache. Only fetch from network if cached result is not available.
CacheOnly → const FetchPolicy
Return result from cache.
NetworkOnly → const FetchPolicy
Return result from network, fail if network call doesn't succeed, save to cache.
NoCache → const FetchPolicy
Return result from network, fail if network call doesn't succeed, don't save to cache