MapRepository class

Implemented types

Constructors

MapRepository()

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 data data - string version of the data to be stored
override
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 data
override
saveData(String key, String data) Future
get stored data from local database key - the key used to store the data data - string version of the data to be stored
override
saveTime(String? key, int? duration) → void
save expiry time in milliseconds for this data key - the key used to store the data duration - duration of cache in seconds
override
toString() String
A string representation of this object.
inherited

Operators

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