CacheHelper class

Properties

hashCode int
The hash code for this object.
no setterinherited
prefs ↔ SharedPreferences?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cacheAppToken(String token) Future<void>
cacheLanguage(String code) Future<void>
getCachedAppToken() String
getCachedLanguage() String
initCachedMemory() → void
loadListSavedObject<T>(T fromJson(Map<String, dynamic> map), {required String key}) List<T>
loadSavedObject<T>(T fromJson(Map<String, dynamic> map), {required String key}) → T?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCachedSharedObject(String key) → void
saveListSharedObject(List<Map<String, dynamic>> mapObjects, {required String key}) Future<void>
saveSharedObject(Map<String, dynamic> mapObject, {required String key}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

shared CacheHelper
final