CacheStrategy class

Constructors

CacheStrategy({required Type cacheStorageType, required Duration duration, Codec codec = const JsonCodec()})
const
CacheStrategy.file(Duration duration, {Codec? codec})
const
CacheStrategy.memory(Duration duration, {Codec? codec})
const

Properties

cacheStorageType Type
final
codec Codec
final
duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
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