SimpleStorage<T> class Null safety

A class to store a value against a defined key in its own namespace

Implementers

Constructors

SimpleStorage(String key)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
key String
The key to store all values mapped to
final
ready Future<bool>
Is the storage ready
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
storage KeyValueStorage
Key value storage instance for this instance
final

Methods

get() Future<T?>
Get the value from storage
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove() Future<void>
Remove the value from storage
set(T value) Future<void>
Add a value pair to storage
toString() String
A string representation of this object. [...]
inherited

Operators

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