InMemorySessionPersistence class

Volatile in-memory persistence — the default backend.

Sessions restored from it survive container recreation within the same process, which is exactly enough to validate the persistence contract; durable backends plug in behind the same interface.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stored → Map<String, dynamic>?
The stored envelope, if any (exposed for tests).
no setter

Methods

load() → Future<Map<String, dynamic>?>
Loads the last persisted envelope, or null when nothing was saved (or the backend is unavailable — persistence is best-effort and must never crash the container).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(Map<String, dynamic> envelope) → Future<void>
Persists envelope (the container's toJson() output).
override
toString() → String
A string representation of this object.
inherited

Operators

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