MoveToEffect constructor

MoveToEffect(
  1. Vector2 destination,
  2. EffectController controller, {
  3. PositionProvider? target,
  4. void onComplete()?,
  5. 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);