StorageRepository class abstract
Abstract class for Storage repository to serve as an interface when using DI pattern
- Implementers
Constructors
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
-
asString(
) → Future< String> - Method declaration for a method that should return String representation of the data stored in the repository
-
clear(
) → Future - Method declaration for a method that should clear all the data
-
contains(
dynamic key) → Future< bool> - Method declaration for checking the existance of saved data under a given key
-
delete(
dynamic key) → Future< bool> - Method declaration for deleting the data saved under a given key
-
get(
dynamic key) → dynamic - Method declaration to get the data by a given key
-
getAll(
) → Future< Map< String, dynamic> > - Method declaration to get all data
-
init(
) → Future< StorageRepository> - Method declaration for initializing the storage
-
log(
) → Future - Method declaration for a method that should log all the data to the console
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, dynamic value) → Future< bool> - Method declaration for saving the data under a given key
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initFlutter(
) → Future< void>