Storable class Null safety

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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

fromStorage(dynamic data) → dynamic
Used to initialize the object using the data parameter. E.g. Product class [...]
isStoreable() → dynamic
Check if the object implements Storable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
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