CacheConfig class abstract

Constructors

CacheConfig({required String cacheDirectory})

Properties

cacheDirectory String
Directory where cache should be persisted
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

isCacheable({required Uri uri}) bool
Based on the uri passed in, decide whether this request is eligible for caching
maxAgeForRequest({required Uri uri}) int
Return the maximum age of a cache in seconds
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