InMemoryDeferredLinkStore class

For tests only. A DeferredLinkStore that keeps its values in memory.

Never use it in an app: the values are gone when the process ends, so the deferred-link check would run, and could deliver, again on every launch. Pass the same instance to a second Strybok to simulate a restart.

Implemented types

Constructors

InMemoryDeferredLinkStore([Map<String, String>? values])

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>
Everything that was written.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) → Future<String?>
The value stored for key, or null.
override
toString() → String
A string representation of this object.
inherited
write(String key, String value) → Future<void>
Stores value for key; must have completed durably when it returns.
override

Operators

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