snapshot method
- bool quiescent = false,
Captures all registered participants in dependency order.
Implementation
StateSnapshot snapshot({bool quiescent = false}) {
final records = <StateSnapshotRecord>[];
final orderedParticipants = _orderedParticipants;
for (var index = 0; index < orderedParticipants.length; index++) {
final participant = orderedParticipants[index];
participant.capabilities.validateRequest(
StateTransactionOperation.snapshot,
quiescent: quiescent,
);
records.add(StateSnapshotRecord(
path: participant.path,
schemaKind: participant.schemaKind,
schemaVersion: participant.schemaVersion,
configurationIdentity: participant.configurationIdentity,
image: participant.snapshot(
transactionId: index,
quiescent: quiescent,
),
));
}
return StateSnapshot(records);
}