burst method

void burst()

Implementation

void burst() {
  hasBurst = true;
  final random = Random();
  for (int i = 0; i < 50; i++) {
    burstParticles.add(BurstParticle(
      x: x,
      y: y,
      speed: burstSpeed + random.nextDouble() * 2,
      angle: random.nextDouble() * 2 * pi,
      color: color,
    ));
  }
}