CacheBehavior enum Null safety

Multiple behaviors dictating how browse caching should be carried out

Check documentation on each value for more information.

Inheritance

Constructors

CacheBehavior()
const

Values

cacheOnly → const CacheBehavior

Only get tiles from the local cache

Useful for applications with dedicated 'Offline Mode'.

cacheFirst → const CacheBehavior

Get tiles from the local cache, going on the Internet to update the cached tile if it has expired (cachedValidDuration has passed)

onlineFirst → const CacheBehavior

Get tiles from the Internet and update the cache for every tile

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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<CacheBehavior>
A constant List of the values in this enum, in order of their declaration.
[cacheOnly, cacheFirst, onlineFirst]