onPaint method
Draws segment in series bounds.
Implementation
@override
void onPaint(Canvas canvas) {
if (points.isEmpty || points.length != 2) {
return;
}
final Paint paint = getStrokePaint();
if (paint.color != Colors.transparent && paint.strokeWidth > 0) {
drawDashes(canvas, series.dashArray, paint,
start: points[0], end: points[1]);
}
}