LocalRepository class abstract
Interface for Local Repository
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized ↔ bool
-
getter/setter pair
- 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 stored -
clearCache(
) → void - clear all content from cache
-
getData(
String key) → Future - get stored data from local database.
-
getTime(
String key) → Future< int?> -
init(
) → Future - initialize instance of database
-
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 -
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 stored -
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 seconds -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited