LinkWidget constructor
const
LinkWidget({
- Key? key,
- required NetworkLink link,
- required NetworkNode sourceNode,
- required NetworkNode targetNode,
- Color color = Colors.grey,
- double width = 1,
- bool showLabel = false,
- TextStyle? labelStyle,
- LinkStyle style = LinkStyle.straight,
- double arrowSize = 8,
- bool highlighted = false,
- Color? highlightColor,
- 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,
});