AcceleratedParticle constructor

AcceleratedParticle({
  1. required Particle child,
  2. Vector2? acceleration,
  3. Vector2? speed,
  4. Vector2? position,
  5. double? lifespan,
})

Implementation

AcceleratedParticle({
  required this.child,
  Vector2? acceleration,
  Vector2? speed,
  Vector2? position,
  super.lifespan,
})  : acceleration = acceleration ?? Vector2.zero(),
      position = position ?? Vector2.zero(),
      speed = speed ?? Vector2.zero();