moveX method
X-axis movement animation.
Set the X-axis offset at the start to begin
.
Set the X-axis offset at the end to end
.
Set the animation duration in duration
.
Set the animation curve to curve
.
X軸移動アニメーションを行います。
begin
に開始時のX軸オフセットを設定します。
end
に終了時のX軸オフセットを設定します。
duration
にアニメーションの時間を設定します。
curve
にアニメーションのカーブを設定します。
Implementation
Future<void> moveX({
required Duration duration,
Curve curve = Curves.linear,
double begin = 0.0,
double end = 0.0,
}) =>
move(
duration: duration,
curve: curve,
begin: Offset(begin, 0.0),
end: Offset(end, 0.0),
);