destroyParticlesInGroup method

void destroyParticlesInGroup(
  1. ParticleGroup group, {
  2. bool callDestructionListener = false,
})

Implementation

void destroyParticlesInGroup(
  ParticleGroup group, {
  bool callDestructionListener = false,
}) {
  group.particles.forEach(
    (p) => destroyParticle(
      p,
      callDestructionListener: callDestructionListener,
    ),
  );
}