drawConnectorLine method

void drawConnectorLine(
  1. Path connectorPath,
  2. Canvas canvas,
  3. int index
)

Implementation

void drawConnectorLine(Path connectorPath, Canvas canvas, int index) {
  final ConnectorLineSettings line = dataLabelSettings.connectorLineSettings;
  canvas.drawPath(
    connectorPath,
    Paint()
      ..color =
          line.width <= 0
              ? Colors.transparent
              : line.color ?? segments[index].fillPaint.color
      ..strokeWidth = line.width
      ..style = PaintingStyle.stroke,
  );
}