MemoryKeyValueStore class
An in-memory KeyValueStore for tests and non-browser contexts.
- Implemented types
Constructors
-
MemoryKeyValueStore([Map<
String, String> ? seed]) -
Creates a store, optionally seeded with
seed.
Properties
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.override -
remove(
String key) → void -
Removes
keyif present.override -
removeWhereKeyStartsWith(
String prefix) → void -
Removes every key beginning with
prefix.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → void -
Stores
valueunderkey.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited