LocalStorage class

Creates instance of a local storage. Key is used as a filename

Constructors

LocalStorage(String key)
factory

Properties

ready ↔ Future<bool>
A future indicating if localstorage intance is ready for read/write operations
read / write
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

deleteItem(String key) → Future
Removes item from storage by key
getItem(String key) → dynamic
Returns a value from storage by key
setItem(String key, dynamic value) → Future
Saves item by key to a storage. Value should be json encodable (json.encode() is called under the hood).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited