NyStorage class
Base class to help manage local storage
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
delete(
String key, {bool andFromBackpack = false}) → Future -
Deletes associated value for the given
key
. -
deleteAll(
{bool andFromBackpack = false}) → Future - Deletes all keys with associated values.
-
read<
T> (String key, {Storable? model}) → Future - Read a value from the local storage
-
readAll(
) → Future< Map< String, String> > - Decrypts and returns all keys with associated values.
-
store(
String key, dynamic object, {bool inBackpack = false}) → Future -
Saves an
object
to local storage. -
syncToBackpack(
) → Future - Sync all the keys stored to the Backpack instance.