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