NodeWidget<T>.defaultStyle constructor
const
NodeWidget<T>.defaultStyle ({
- Key? key,
- required Node<
T> node, - NodeShape? shape,
- List<
Connection> connections = const [], - void onPortTap()?,
- void onPortHover()?,
- void onNodeTap(
- String nodeId
- void onNodeDoubleTap(
- String nodeId
- ({bool isOutput, String nodeId, String portId})? hoveredPortInfo,
- Color? backgroundColor,
- Color? selectedBackgroundColor,
- Color? borderColor,
- Color? selectedBorderColor,
- double? borderWidth,
- double? selectedBorderWidth,
- BorderRadius? borderRadius,
- EdgeInsets? padding,
Creates a node widget with default content layout.
This constructor uses the standard node rendering which displays the node type as a title and node ID as content.
Parameters are the same as the default constructor, except child is always null.
Implementation
const NodeWidget.defaultStyle({
super.key,
required this.node,
this.shape,
this.connections = const [],
this.onPortTap,
this.onPortHover,
this.onNodeTap,
this.onNodeDoubleTap,
this.hoveredPortInfo,
this.backgroundColor,
this.selectedBackgroundColor,
this.borderColor,
this.selectedBorderColor,
this.borderWidth,
this.selectedBorderWidth,
this.borderRadius,
this.padding,
}) : child = null;