LinkWidget constructor

const LinkWidget({
  1. Key? key,
  2. required NetworkLink link,
  3. required NetworkNode sourceNode,
  4. required NetworkNode targetNode,
  5. Color color = Colors.grey,
  6. double width = 1,
  7. bool showLabel = false,
  8. TextStyle? labelStyle,
  9. LinkStyle style = LinkStyle.straight,
  10. double arrowSize = 8,
  11. bool highlighted = false,
  12. Color? highlightColor,
  13. VoidCallback? onTap,
})

Implementation

const LinkWidget({
  super.key,
  required this.link,
  required this.sourceNode,
  required this.targetNode,
  this.color = Colors.grey,
  this.width = 1,
  this.showLabel = false,
  this.labelStyle,
  this.style = LinkStyle.straight,
  this.arrowSize = 8,
  this.highlighted = false,
  this.highlightColor,
  this.onTap,
});