SchematicPainter constructor
- required SchematicLayoutResult layout,
- required ValueNotifier<
({Offset offset, double scale})> viewTransform, - required ValueNotifier<
bool> snapshotMode, - required ValueNotifier<
({bool isInterior, String? portId})> hoveredBoundaryPortNotifier, - SchematicColorScheme colorScheme = SchematicColorScheme.defaultScheme,
- String? highlightedWireName,
- String? selectedEdgeScope,
- Set<
String> selectedWireIds = const {}, - Map<
String, String?> selectedWireScopePaths = const {}, - Set<
String> selectedNodeIds = const {}, - String? highlightedNodeId,
- String? pendingToggleNodeId,
- bool isNodeInScope()?,
Constructor for SchematicPainter.
Implementation
SchematicPainter({
required this.layout,
required this.viewTransform,
required this.snapshotMode,
required this.hoveredBoundaryPortNotifier,
this.colorScheme = SchematicColorScheme.defaultScheme,
this.highlightedWireName,
this.selectedEdgeScope,
this.selectedWireIds = const {},
this.selectedWireScopePaths = const {},
this.selectedNodeIds = const {},
this.highlightedNodeId,
this.pendingToggleNodeId,
this.isNodeInScope,
}) : super(
repaint: Listenable.merge([
viewTransform,
hoveredBoundaryPortNotifier,
snapshotMode,
]),
);