Bubble constructor

Bubble({
  1. required double x,
  2. required double y,
  3. required double size,
  4. required double velocityX,
  5. required double velocityY,
})

Creates a new bubble with the specified properties.

All parameters are required to ensure proper bubble initialization and physics calculations.

Implementation

Bubble({
  required this.x,
  required this.y,
  required this.size,
  required this.velocityX,
  required this.velocityY,
});