setParticleCount method

void setParticleCount(
  1. int count
)

Implementation

void setParticleCount(int count) {
  numParticles = count;
  particles = List<Particle?>.filled(numParticles, null);
  init();
}