onPaint method
Draws segment in series bounds.
Implementation
@override
void onPaint(Canvas canvas) {
final SplineRangeAreaSeries<dynamic, dynamic> splineRangeAreaSeries =
_seriesRenderer._series as SplineRangeAreaSeries<dynamic, dynamic>;
_pathRect = _path.getBounds();
canvas.drawPath(
_path, (_series.gradient == null) ? fillPaint! : getFillPaint());
if (strokePaint!.color != Colors.transparent) {
_drawDashedLine(
canvas,
_series.dashArray,
strokePaint!,
splineRangeAreaSeries.borderDrawMode == RangeAreaBorderMode.all
? _path
: _strokePath);
}
}