update method

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

Updates the _timer of this Particle.

Implementation

@override
void update(double dt) {
  super.update(dt);

  children.removeWhere((particle) => particle.shouldRemove);

  for (final child in children) {
    child.update(dt);
  }
}