ExpiryCache class
Constructors
- ExpiryCache({Duration duration = const Duration(hours: 24)})
-
const
Properties
Methods
-
addToCache(
Response networkValue, String key) → void -
inherited
-
get(
Function networkRequest, String key) → Future< Response> -
getValueFromStorage(
String key) → ResponseCacheItem? -
inherited
-
hasCacheExpired(
ResponseCacheItem cachedValue, Duration cacheDuration) → bool -
inherited
-
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