snapshot method
Implementation
CockpitSnapshot snapshot({
CockpitSnapshotOptions options = const CockpitSnapshotOptions(),
}) {
final snapshot = options.profile == CockpitSnapshotProfile.live
? _registry.snapshot()
: _diagnosticBuilder
.build(
routeName: _registry.routeName,
visibleTargets: _registry.visibleTargets,
options: options,
)
.snapshot;
if (!options.includeRebuildActivity || widget.rebuildTracker == null) {
return snapshot.copyWith(focus: cockpitBuildFocusSnapshot());
}
return snapshot.copyWith(
focus: cockpitBuildFocusSnapshot(),
rebuild: widget.rebuildTracker!.snapshot(
maxEntries: options.maxRebuildEntries,
),
);
}