onPaint method

  1. @override
void onPaint (Canvas canvas)
override

Draws segment in series bounds.

Implementation

@override
void onPaint(Canvas canvas) {
  final Path path = Path();
  series.selectionSettings._selectionRenderer._checkWithSelectionState(
      series.segments[currentSegmentIndex], series._chart);

  /// Draw spline series
  path.moveTo(x1, y1);
  if (_currentPoint.isGap != true && _nextPoint.isGap != true) {
    path.cubicTo(
        startControlX, startControlY, endControlX, endControlY, x2, y2);
    _drawDashedLine(canvas, series, strokePaint, path);
  }
}