Storable class abstract
Storable class to implement local storage for Models. This class can be used to then storage models using the NyStorage class.
Constructors
- Storable()
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
-
fromStorage(
dynamic data) → dynamic -
Used to initialize the object using the
data
parameter. E.g. Product class -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future -
Read a
key
value from NyStorage -
save(
String key) → Future -
Save the object to secure storage using a unique
key
. E.g. User class -
toStorage(
) → dynamic - Return a representation of the model class. E.g. Product class
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited