render method

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

Implementation

@override
void render(Canvas canvas) {
  super.render(canvas);
  if (hasGameRef) {
    if ((gameRef as BonfireGame).showCollisionArea == true) {
      _drawCollision(
        canvas,
        (gameRef as BonfireGame).collisionAreaColor ??
            Colors.lightGreen.withOpacity(0.5),
      );
    }
  }
}