MoveToEffect constructor
MoveToEffect(
- Vector2 destination,
- EffectController controller, {
- PositionProvider? target,
- void onComplete()?,
- ComponentKey? key,
Implementation
MoveToEffect(
Vector2 destination,
EffectController controller, {
PositionProvider? target,
void Function()? onComplete,
super.key,
}) : _destination = destination.clone(),
_offset = Vector2.zero(),
super(controller, target, onComplete: onComplete);