NodeWidget constructor

const NodeWidget({
  1. Key? key,
  2. required NetworkNode node,
  3. Color color = Colors.blue,
  4. Color? borderColor,
  5. double borderWidth = 2,
  6. bool showLabel = true,
  7. TextStyle? labelStyle,
  8. NodeShape shape = NodeShape.circle,
  9. bool selected = false,
  10. Color? selectionColor,
  11. VoidCallback? onTap,
  12. void onDragStart(
    1. DragStartDetails
    )?,
  13. void onDragUpdate(
    1. DragUpdateDetails
    )?,
  14. void onDragEnd(
    1. DragEndDetails
    )?,
})

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,
});