snapshot method
override
Captures this participant's image.
Implementation
@override
Object snapshot({
required int transactionId,
required bool quiescent,
}) {
final records = <StateSnapshotRecord>[];
for (var index = 0; index < children.length; index++) {
final child = children[index];
child.capabilities.validateRequest(
StateTransactionOperation.snapshot,
quiescent: quiescent,
);
records.add(StateSnapshotRecord(
path: child.path,
schemaKind: child.schemaKind,
schemaVersion: child.schemaVersion,
configurationIdentity: child.configurationIdentity,
image: child.snapshot(
transactionId: transactionId + index,
quiescent: quiescent,
),
));
}
return CompositeStateSnapshotImage(records);
}