InMemoryStorageDriver class

An in-memory StorageDriver backed by a plain Dart Map.

Provides direct rawRead / rawWrite access for test assertions (e.g. verifying that key isolation is enforced at the prefix level).

Implemented types

Constructors

InMemoryStorageDriver()

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

delete(String key) → Future<void>
Deletes the entry at key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rawRead(String key) → Future<String?>
Reads key from the raw underlying store — bypasses any namespacing.
read(String key) → Future<String?>
Reads the value at key, or null if absent.
override
toString() → String
A string representation of this object.
inherited
write(String key, String value) → Future<void>
Writes value at key.
override

Operators

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