CacheRule class

The rules used in DiskCache.

Constructors

CacheRule({Duration maxAge: const Duration(days: 30), StoreDirectoryType storeDirectory: StoreDirectoryType.temporary, bool checksum: false})
const

Properties

checksum bool
Checkum(CRC32) for cache file. Default is disabled;
final
hashCode int
The hash code for this object. [...]
read-only, inherited
maxAge Duration
Set a maximum age for the cache file. Default is 30 days.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
storeDirectory StoreDirectoryType
Determining the type of folder for the cache file. Default is temporary folder.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited