StateSnapshotRegistry class

Coordinates snapshots and restores for registered state participants.

Constructors

StateSnapshotRegistry()

Properties

hashCode → int
The hash code for this object.
no setterinherited
orderedParticipants → List<StateSnapshotParticipant>
Participants in dependency order, stable by registration order.
no setter
participants → List<StateSnapshotParticipant>
Participants in deterministic registration order.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(StateSnapshotParticipant participant) → void
Registers a participant under a unique logical path.
restore(StateSnapshot snapshot, {bool quiescent = false}) → void
Validates and then restores all registered participants.
snapshot({bool quiescent = false}) → StateSnapshot
Captures all registered participants in dependency order.
toString() → String
A string representation of this object.
inherited
validateRestore(StateSnapshot snapshot, {bool quiescent = false}) → void
Validates a complete snapshot manifest without mutating participants.

Operators

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