PointConnectionStyle constructor

const PointConnectionStyle({
  1. PointConnectionType type = PointConnectionType.solid,
  2. Color color = Colors.white,
  3. double dotSize = 1,
  4. double lineWidth = 1,
  5. double dashSize = 4,
  6. double spacing = 8,
})

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.

Example usage:

PointConnectionStyle(
type: PointConnectionType.solid,
color: Colors.white,
dotSize: 1,
lineWidth: 1,
dashSize: 4,
spacing: 8,
);

Implementation

const PointConnectionStyle({
  this.type = PointConnectionType.solid,
  this.color = Colors.white,
  this.dotSize = 1,
  this.lineWidth = 1,
  this.dashSize = 4,
  this.spacing = 8,
});