ApiRequestCacheManager class
Properties
-
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
Static Methods
-
clear(String key)
→ void
-
-
clearAll()
→ void
-
-
fetchAction<T>(String key, ApiRequestAction<T> action, {Map<String, dynamic> requestData = const {}, bool enableCache = true, bool enableBackgroundFetch = true})
→ Future<T>
-
-
fetchFuture<T>(String key, Future<T> future(), {bool enableCache = true, bool enableBackgroundFetch = true})
→ Future<T>
-
-
getNotifier<T>(String key)
→ ValueNotifier<T?>
-
-
isFetching(String key)
→ bool
-
-
retrieveData<T>(String key)
→ T?
-
-
store<T>(String key, T data, {bool isFetching = false})
→ void
-