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