onPaint method

  1. @override
void onPaint(
  1. Canvas canvas
)
override

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);
}