onPaint method
Draws segment in series bounds.
Implementation
@override
void onPaint(Canvas canvas) {
final SegmentProperties segmentProperties =
SegmentHelper.getSegmentProperties(this);
renderStackedLineSeries(
segmentProperties.series as StackedSeriesBase<dynamic, dynamic>,
canvas,
strokePaint!,
segmentProperties.x1,
segmentProperties.y1,
segmentProperties.x2,
segmentProperties.y2);
}