onPaint method
Draws segment in series bounds.
Implementation
@override
void onPaint(Canvas canvas) {
_setSegmentProperties();
final ErrorBarSeries<dynamic, dynamic> errorBarSeries =
_segmentProperties.series as ErrorBarSeries<dynamic, dynamic>;
_animateErrorBar(
canvas,
strokePaint!,
_segmentProperties.currentPoint!,
animationFactor,
_segmentProperties.seriesRenderer,
errorBarSeries.capLength!,
errorBarSeries.dashArray);
}