onPaint method

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

Draws the crosshair.

Implementation

@override
void onPaint(Canvas canvas) {
  if (_crosshairRenderingDetails.crosshairPainter != null) {
    _crosshairRenderingDetails.crosshairPainter!.drawCrosshair(canvas);
  }
}