PointConnectionStyle constructor
Creates a new instance of PointConnectionStyle.
The type parameter specifies the type of connection. The default value is PointConnectionType.solid.
The color parameter specifies the color of the connection. The default value is Colors.white.
The dotSize parameter specifies the size of the dots in the connection. The default value is 1.
The lineWidth parameter specifies the width of the line in the connection. The default value is 1.
The dashSize parameter specifies the size of the dashes in the connection. The default value is 4.
The spacing parameter specifies the spacing between dots in the connection. The default value is 8.
The dashAnimateTime parameter specifies the time in ms for a dash to travel the arc. Default is 0 (disabled).
The transitionDuration parameter specifies the fade in/out duration in ms. Default is 500.
The animateOnAdd parameter enables arc growth animation. Default is true.
The growthAnimationDuration parameter specifies arc growth duration in ms. Default is 1000.
Example usage:
PointConnectionStyle(
type: PointConnectionType.dashed,
color: Colors.white,
dashSize: 4,
spacing: 8,
dashAnimateTime: 2000, // Dashes move along arc over 2 seconds
transitionDuration: 500,
animateOnAdd: true,
growthAnimationDuration: 1000,
);
Implementation
const PointConnectionStyle({
this.type = PointConnectionType.solid,
this.color = Colors.white,
this.dotSize = 1,
this.lineWidth = 1,
this.dashSize = 4,
this.spacing = 8,
this.dashAnimateTime = 0,
this.transitionDuration = 500,
this.animateOnAdd = true,
this.growthAnimationDuration = 1000,
});