LocalCache 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
-
sp
→ SharedPreferences
-
no setter
Methods
-
clear()
→ Future<bool>
-
-
getBool(String key)
→ bool?
-
-
getDouble(String key)
→ double?
-
-
getInt(String key)
→ int?
-
-
getJson<T>(String key)
→ T?
-
-
getString(String key)
→ String?
-
-
getStringList(String key)
→ List<String>?
-
-
initialize({String? expirationSuffix, String prefix = 'jtech_base.', Set<String>? allowList})
→ Future<void>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(String key)
→ Future<bool>
-
-
removeMany(List<String> keys)
→ Future<List<bool>>
-
-
setBool(String key, bool value, {Duration? expiration})
→ Future<bool>
-
-
setDouble(String key, double value, {Duration? expiration})
→ Future<bool>
-
-
setInt(String key, int value, {Duration? expiration})
→ Future<bool>
-
-
setJson(String key, dynamic json, {Duration? expiration})
→ Future<bool>
-
-
setString(String key, String value, {Duration? expiration})
→ Future<bool>
-
-
setStringList(String key, List<String> value, {Duration? expiration})
→ Future<bool>
-
-
toString()
→ String
-
A string representation of this object.
inherited