AndroidCacheMode class

An Android-specific class used to override the way the cache is used. Use CacheMode instead.

Annotations

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<AndroidCacheMode>
Set of all values of AndroidCacheMode.
final

Static Methods

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

Constants

LOAD_CACHE_ELSE_NETWORK → const AndroidCacheMode
Use cached resources when they are available, even if they have expired. Otherwise load resources from the network.
LOAD_CACHE_ONLY → const AndroidCacheMode
Don't use the network, load from the cache.
LOAD_DEFAULT → const AndroidCacheMode
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 AndroidCacheMode
Don't use the cache, load from the network.