CacheMode class

Class used to override the way the cache is used.

Properties

hashCode int
The hash code for this object.
no setteroverride
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
toNativeValue() int
Gets int native value.
toString() String
A string representation of this object.
override
toValue() int
Gets int value.

Operators

operator ==(Object value) bool
The equality operator.
override

Static Properties

values Set<CacheMode>
Set of all values of CacheMode.
final

Static Methods

fromNativeValue(int? value) CacheMode?
Gets a possible CacheMode instance from a native value.
fromValue(int? value) CacheMode?
Gets a possible CacheMode instance from int value.

Constants

LOAD_CACHE_ELSE_NETWORK → const CacheMode
Use cached resources when they are available, even if they have expired. Otherwise load resources from the network.
LOAD_CACHE_ONLY → const CacheMode
Don't use the network, load from the cache.
LOAD_DEFAULT → const CacheMode
Default cache usage mode. If the navigation type doesn't impose any specific behavior, use cached resources when they are available and not expired, otherwise load resources from the network.
LOAD_NO_CACHE → const CacheMode
Don't use the cache, load from the network.