CockpitSnapshotTarget constructor

CockpitSnapshotTarget({
  1. required String registrationId,
  2. String? cockpitId,
  3. String? semanticId,
  4. String? keyValue,
  5. String? text,
  6. List<String> textParts = const <String>[],
  7. String? tooltip,
  8. String? typeName,
  9. String? path,
  10. String? scrollablePath,
  11. String? scrollableKeyValue,
  12. String? scrollableTypeName,
  13. required String routeName,
  14. bool visible = true,
  15. List<CockpitCommandType> supportedCommands = const <CockpitCommandType>[],
  16. CockpitControlState? control,
  17. CockpitSnapshotLayout? layout,
  18. CockpitSnapshotContent? content,
  19. CockpitSnapshotStyle? style,
  20. List<CockpitSnapshotAncestor> ancestors = const <CockpitSnapshotAncestor>[],
  21. List<CockpitDiagnosticProperty> diagnosticProperties = const <CockpitDiagnosticProperty>[],
})

Creates a CockpitSnapshotTarget.

Implementation

CockpitSnapshotTarget({
  required this.registrationId,
  this.cockpitId,
  this.semanticId,
  this.keyValue,
  this.text,
  List<String> textParts = const <String>[],
  this.tooltip,
  this.typeName,
  this.path,
  this.scrollablePath,
  this.scrollableKeyValue,
  this.scrollableTypeName,
  required this.routeName,
  this.visible = true,
  List<CockpitCommandType> supportedCommands = const <CockpitCommandType>[],
  this.control,
  this.layout,
  this.content,
  this.style,
  List<CockpitSnapshotAncestor> ancestors = const <CockpitSnapshotAncestor>[],
  List<CockpitDiagnosticProperty> diagnosticProperties =
      const <CockpitDiagnosticProperty>[],
}) : textParts = List.unmodifiable(textParts),
     supportedCommands = List.unmodifiable(supportedCommands),
     ancestors = List.unmodifiable(ancestors),
     diagnosticProperties = List.unmodifiable(diagnosticProperties);