onPaint method

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

Draws trackball

  • canvas - Canvas used to draw the track line on the chart.

Implementation

@override
void onPaint(Canvas canvas) {
  if (_trackballRenderingDetails.trackballPainter != null &&
      !_trackballRenderingDetails.trackballPainter!.canResetPath) {
    _trackballRenderingDetails.trackballPainter!.drawTrackball(canvas);
  }
}