render method

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

Implementation

@override
void render(Canvas canvas) {
  super.render(canvas);
  if (_drawVision) {
    canvas.save();
    canvas.translate(-position.x, -position.y);
    _currentShape?.render(canvas, _paint);
    canvas.restore();
  }
}