onPaint method
Draws segment in series bounds.
Implementation
@override
void onPaint(Canvas canvas) {
final SegmentProperties segmentProperties =
SegmentHelper.getSegmentProperties(this);
renderStackingRectSeries(
fillPaint,
strokePaint,
segmentProperties.path,
animationFactor,
segmentProperties.seriesRenderer,
canvas,
segmentRect,
segmentProperties.currentPoint!,
currentSegmentIndex!);
}