update method

  1. @override
void update(
  1. double dt
)
override

Passes update chain to child Particle.

Implementation

@override
void update(double dt) {
  particle?.update(dt);
  if (particle?.shouldRemove ?? false) {
    removeFromParent();
  }
}