MapRepository class
- Implemented types
Constructors
Properties
-
cacheBox
↔ Map<
String, dynamic> -
getter/setter pair
-
cacheTimeBox
↔ Map<
String, int> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized ↔ bool
-
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkCache(
String key) → Future< bool> -
check time storage if cached data exists and is valid
key
- the key used to store the datadata
- string version of the data to be storedoverride -
clearCache(
) → void -
clear all content from cache
override
-
getData(
String key) → Future -
get stored data from local database.
override
-
getTime(
String key) → Future< int?> -
override
-
init(
) → Future -
initialize instance of database
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeData(
String key) → void -
remove a cached content from cache
key
- the key used to store the dataoverride -
saveData(
String key, String data) → Future -
get stored data from local database
key
- the key used to store the datadata
- string version of the data to be storedoverride -
saveTime(
String? key, int? duration) → void -
save expiry time in milliseconds for this data
key
- the key used to store the dataduration
- duration of cache in secondsoverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited