MemoryKeyValueStore class

In-memory store for tests and for hosts that opt out of persistence.

Implemented types

Constructors

MemoryKeyValueStore([Map<String, String>? initial])
Creates an empty store (or one seeded with initial).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Map<String, String>
Current contents.
final

Methods

delete(String key) → Future<void>
Removes key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) → Future<String?>
Reads key, or null when absent.
override
toString() → String
A string representation of this object.
inherited
write(String key, String value) → Future<void>
Writes value under key.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited