CockpitStepRecord constructor

CockpitStepRecord({
  1. required int index,
  2. required String actionType,
  3. required Map<String, Object?> actionArgs,
  4. required DateTime observedAt,
  5. CockpitObservation? observation,
  6. CockpitSnapshot? snapshot,
  7. List<CockpitArtifactRef> artifactRefs = const [],
  8. CockpitCommandType? commandType,
  9. CockpitLocator? locator,
  10. CockpitLocatorResolution? locatorResolution,
  11. CockpitCommandError? commandError,
  12. int? durationMs,
  13. CockpitCommandStatus? status,
  14. CockpitTargetKind? targetKind,
  15. CockpitPlaneKind? executionPlane,
  16. CockpitSurfaceKind? surfaceKind,
  17. List<CockpitPlaneKind> fallbackTrail = const <CockpitPlaneKind>[],
  18. bool usedPlaneFallback = false,
  19. CockpitCaptureProfile? requestedCaptureProfile,
  20. CockpitCaptureKind? resolvedCaptureKind,
  21. bool usedCaptureFallback = false,
  22. String? degradationReason,
  23. List<CockpitArtifactRef> captureRefs = const [],
})

Creates a CockpitStepRecord.

Implementation

CockpitStepRecord({
  required this.index,
  required this.actionType,
  required Map<String, Object?> actionArgs,
  required this.observedAt,
  this.observation,
  this.snapshot,
  List<CockpitArtifactRef> artifactRefs = const [],
  this.commandType,
  this.locator,
  this.locatorResolution,
  this.commandError,
  this.durationMs,
  this.status,
  this.targetKind,
  this.executionPlane,
  this.surfaceKind,
  List<CockpitPlaneKind> fallbackTrail = const <CockpitPlaneKind>[],
  this.usedPlaneFallback = false,
  this.requestedCaptureProfile,
  this.resolvedCaptureKind,
  this.usedCaptureFallback = false,
  this.degradationReason,
  List<CockpitArtifactRef> captureRefs = const [],
}) : actionArgs = Map.unmodifiable(actionArgs),
     artifactRefs = List.unmodifiable(artifactRefs),
     fallbackTrail = List.unmodifiable(fallbackTrail),
     captureRefs = List.unmodifiable(captureRefs);