CacheXCore 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
-
clear()
→ Future<bool>
-
-
containsKey(String key)
→ bool
-
-
getBool({required String key, bool? defaultValue})
→ bool?
-
Asking CacheXWorker to Get bool from cache using the key
Provide a default value or it will return null as default
-
getDouble({required String key, double? defaultValue})
→ double?
-
Asking CacheXWorker to Get double from cache using the key
Provide a default value or it will return null as default
-
getInt({required String key, int? defaultValue})
→ int?
-
Asking CacheXWorker to Get int from cache using the key
Provide a default value or it will return null as default
-
getKeys()
→ Set<String>
-
Asking CacheXWorker to Get Keys from cache
-
getString({required String key, String? defaultValue})
→ String?
-
Asking CacheXWorker to Get string from cache using the key
Provide a default value or it will return null as default
-
getStringList({required String key, List<String>? defaultValue})
→ List<String>?
-
Asking CacheXWorker to Get String List from cache using the key
Provide a default value or it will return null as default
-
init({required String password})
→ dynamic
-
Initialize th CacheXCore
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(String key)
→ Future<bool>
-
-
saveBool({required String key, required bool value})
→ Future<bool>
-
Send to CacheXWorker to Save bool
-
saveDouble({required String key, required double value})
→ Future<bool>
-
Send to CacheXWorker to Save double
-
saveInt({required String key, required int value})
→ Future<bool>
-
Send to CacheXWorker to Save int
-
saveString({required String key, required String value})
→ Future<bool>
-
Send to CacheXWorker to Save string
-
saveStringList({required String key, required List<String> value})
→ Future<bool>
-
Send CacheXWorker to Save List of String
-
toString()
→ String
-
A string representation of this object.
inherited