MoveEffect.to constructor

MoveEffect.to(
  1. Vector2 destination,
  2. EffectController controller, {
  3. PositionProvider? target,
  4. void onComplete()?,
  5. ComponentKey? key,
})

Implementation

factory MoveEffect.to(
  Vector2 destination,
  EffectController controller, {
  PositionProvider? target,
  void Function()? onComplete,
  ComponentKey? key,
}) =>
    MoveToEffect(
      destination,
      controller,
      target: target,
      onComplete: onComplete,
      key: key,
    );