onPaint method
Draws segment in series bounds.
Implementation
@override
void onPaint(Canvas canvas) {
_pathRect = _path.getBounds();
canvas.drawPath(
_path, (_series.gradient == null) ? fillPaint! : getFillPaint());
_drawDashedLine(canvas, _series.dashArray, strokePaint!, _strokePath);
}