LinkStyle class

Constructors

LinkStyle({LineType lineType = LineType.solid, ArrowType arrowType = ArrowType.none, ArrowType backArrowType = ArrowType.none, double arrowSize = 5, double backArrowSize = 5, double lineWidth = 1, Color color = Colors.black})
Defines a visual design of a link on the canvas.
LinkStyle.fromJson(Map<String, dynamic> json)

Properties

arrowSize double
Defines the size of the link's front arrowhead.
getter/setter pair
arrowType ArrowType
Defines the design of the link's front arrowhead.
getter/setter pair
backArrowSize double
Defines the size of the link's back arrowhead.
getter/setter pair
backArrowType ArrowType
Defines the design of the link's back arrowhead.
getter/setter pair
color Color
Defines the color of the link's line and both arrowheads.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lineType LineType
Defines the design of the link's line.
getter/setter pair
lineWidth double
Defines the width of the link's line.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getArrowPath(double arrowSize, Offset point1, Offset point2, double scale, double pointed) Path
getArrowTipPath(ArrowType arrowType, double arrowSize, Offset point1, Offset point2, double scale) Path
getCirclePath(double arrowSize, Offset point1, Offset point2, double scale, bool isCenter) Path
getDashedLinePath(Offset point1, Offset point2, double scale, double dashLength, double dashSpace) Path
getEndShortening(ArrowType arrowType) double
getLinePath(Offset point1, Offset point2, double scale) Path
getSemiCirclePath(double arrowSize, Offset point1, Offset point2, double scale) Path
getSolidLinePath(Offset point1, Offset point2) Path
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited