render method

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

Implementation

@override
void render(Canvas canvas) {
  if (gameRef.showCollisionArea) {
    canvas.drawRect(
      size.toRect(),
      _paint,
    );
  }
  super.render(canvas);
}