moving method
Wraps this particle with a MovingParticle.
Allowing it to move from one Vector2 to another one.
Implementation
Particle moving({
required Vector2 to,
Vector2? from,
Curve curve = Curves.linear,
}) {
return MovingParticle(
from: from ?? Vector2.zero(),
to: to,
curve: curve,
child: this,
lifespan: _lifespan,
);
}