KeyValueStore class abstract
A minimal synchronous string key/value store. Abstracts localStorage so
that storage-backed logic can be unit-tested with MemoryKeyValueStore
without a browser.
- Implementers
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → String? -
Returns the value for
key, ornullif absent. -
remove(
String key) → void -
Removes
keyif present. -
removeWhereKeyStartsWith(
String prefix) → void -
Removes every key beginning with
prefix. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → void -
Stores
valueunderkey.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited