fillInitialData method

  1. @override
void fillInitialData()
override

Implementation

@override
void fillInitialData() {
  if (particles != null) return;
  particles = List.filled(count, _Particle()); // stupid
  for (int i = 0; i < count; i++) {
    particles![i] = _Particle();
    resetParticle(i);
  }
}