moveY method

Future<void> moveY({
  1. required Duration duration,
  2. Curve curve = Curves.linear,
  3. double begin = 0.0,
  4. double end = 0.0,
})

Y-axis movement animation.

Set the Y-axis offset at the start to begin.

Set the Y-axis offset at the end to end.

Set the animation duration in duration.

Set the animation curve to curve.

Y軸移動アニメーションを行います。

beginに開始時のY軸オフセットを設定します。

endに終了時のY軸オフセットを設定します。

durationにアニメーションの時間を設定します。

curveにアニメーションのカーブを設定します。

Implementation

Future<void> moveY({
  required Duration duration,
  Curve curve = Curves.linear,
  double begin = 0.0,
  double end = 0.0,
}) =>
    move(
      duration: duration,
      curve: curve,
      begin: Offset(0.0, begin),
      end: Offset(0.0, end),
    );