NodeWidget constructor
const
NodeWidget({
- Key? key,
- required NetworkNode node,
- Color color = Colors.blue,
- Color? borderColor,
- double borderWidth = 2,
- bool showLabel = true,
- TextStyle? labelStyle,
- NodeShape shape = NodeShape.circle,
- bool selected = false,
- Color? selectionColor,
- VoidCallback? onTap,
- void onDragStart()?,
- void onDragUpdate()?,
- void onDragEnd()?,
Implementation
const NodeWidget({
super.key,
required this.node,
this.color = Colors.blue,
this.borderColor,
this.borderWidth = 2,
this.showLabel = true,
this.labelStyle,
this.shape = NodeShape.circle,
this.selected = false,
this.selectionColor,
this.onTap,
this.onDragStart,
this.onDragUpdate,
this.onDragEnd,
});