SchematicCanvas constructor

const SchematicCanvas({
  1. required SchematicLayoutResult layout,
  2. Key? key,
  3. String? netlistJson,
  4. HierarchyService? externalHierarchy,
  5. SchematicColorScheme colorScheme = SchematicColorScheme.dark,
  6. Future<SchematicLayoutResult?> onNodeToggle(
    1. String nodeId
    )?,
  7. Future<SchematicLayoutResult?> onPortExpand(
    1. String nodeId,
    2. String portId
    )?,
  8. Future<SchematicLayoutResult?> onPortExpandThrough(
    1. String nodeId,
    2. String portId
    )?,
  9. Future<SchematicLayoutResult?> onPortCollapse(
    1. String nodeId,
    2. String portId
    )?,
  10. Future<SchematicLayoutResult?> onPortCollapseThrough(
    1. String nodeId,
    2. String portId
    )?,
  11. Future<SchematicLayoutResult?> onCollapsePartial(
    1. String nodeId
    )?,
  12. Future<SchematicLayoutResult?> onExpandNonPrimitives(
    1. String nodeId
    )?,
  13. Future<SchematicLayoutResult?> onConvertToBlocksOnly(
    1. String nodeId
    )?,
  14. Future<SchematicLayoutResult?> onNodeToggleRecursive(
    1. String nodeId
    )?,
  15. Future<SchematicLayoutResult?> onExpandNonPrimitivesRecursive(
    1. String nodeId
    )?,
  16. Future<SchematicLayoutResult?> onConvertToBlocksOnlyRecursive(
    1. String nodeId
    )?,
  17. Future<SchematicLayoutResult?> onExpandWire(
    1. String nodeId,
    2. String portId
    )?,
  18. Future<SchematicLayoutResult?> onExpandChild(
    1. String nodeId,
    2. String portId
    )?,
  19. Future<SchematicLayoutResult?> onExpandPath(
    1. List<String> pathSegments, {
    2. String? targetWireName,
    })?,
  20. String? pendingToggleNodeId,
  21. String? recentlyToggledNodeId,
  22. bool isDimmed = false,
  23. ({bool computed, String signalId, String value})? signalValueLookup(
    1. String wireName
    )?,
  24. String? signalNameForPort(
    1. String nodeId,
    2. String portId
    )?,
  25. String? focusPortId,
  26. void onSendSignals(
    1. List<String> signalPaths
    )?,
  27. String? directDriverSignalPath(
    1. String nodeId,
    2. String portId
    )?,
  28. bool hasExternalSignalListeners = true,
  29. GoToSourceCallback? onGoToSource,
  30. AvailableSourceFormats? availableSourceFormats,
  31. ValueNotifier<List<String>?>? incomingSignalPaths,
})

Creates a schematic canvas widget.

Implementation

const SchematicCanvas({
  required this.layout,
  super.key,
  this.netlistJson,
  this.externalHierarchy,
  this.colorScheme = SchematicColorScheme.dark,
  this.onNodeToggle,
  this.onPortExpand,
  this.onPortExpandThrough,
  this.onPortCollapse,
  this.onPortCollapseThrough,
  this.onCollapsePartial,
  this.onExpandNonPrimitives,
  this.onConvertToBlocksOnly,
  this.onNodeToggleRecursive,
  this.onExpandNonPrimitivesRecursive,
  this.onConvertToBlocksOnlyRecursive,
  this.onExpandWire,
  this.onExpandChild,
  this.onExpandPath,
  this.pendingToggleNodeId,
  this.recentlyToggledNodeId,
  this.isDimmed = false,
  this.signalValueLookup,
  this.signalNameForPort,
  this.focusPortId,
  this.onSendSignals,
  this.directDriverSignalPath,
  this.hasExternalSignalListeners = true,
  this.onGoToSource,
  this.availableSourceFormats,
  this.incomingSignalPaths,
});