MovingParticle constructor

MovingParticle({
  1. required Particle child,
  2. required Vector2 to,
  3. Vector2? from,
  4. double? lifespan,
  5. Curve curve = Curves.linear,
})

Implementation

MovingParticle({
  required this.child,
  required this.to,
  Vector2? from,
  super.lifespan,
  super.curve,
}) : from = from ?? Vector2.zero();