CacheOption class

Constructors

CacheOption({CachePolicy policy = CachePolicy.request, Duration? maxStale, CachePriority priority = CachePriority.normal, CacheCipher? cipher})
const

Properties

cipher → CacheCipher?
Optional method to decrypt/encrypt cache content
final
hashCode → int
The hash code for this object.
no setterinherited
maxStale → Duration?
Overrides any HTTP directive to delete entry past this duration.
final
policy → CachePolicy
Handles behaviour to request backend.
final
priority → CachePriority
The priority of a cached value. Ease the clean up if needed.
final
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