destroyParticle method
Implementation
void destroyParticle(
Particle particle, {
required bool callDestructionListener,
}) {
var flags = ParticleType.zombieParticle;
if (callDestructionListener) {
flags |= ParticleType.destroyListener;
}
particle.flags |= flags;
}