Datastore class abstract
Abstract interface for a key-value datastore.
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
-
close(
) → Future< void> - Close the datastore.
-
delete(
Key key) → Future< void> - Delete the value at the given key.
-
get(
Key key) → Future< Uint8List?> - Get the value stored at the given key.
-
has(
Key key) → Future< bool> - Check if the given key exists.
-
init(
) → Future< void> - Initialize the datastore (e.g. open database, create directory).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
Key key, Uint8List value) → Future< void> - Store the given value at the given key.
-
query(
Query q) → Stream< QueryEntry> - Query the datastore.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited