rotate method
Performs rotational animation.
Set the starting rotation speed at begin
. 1.0 is 360 degrees (2π).
Set the number of rotations at the end to end
. 1.0 is 360 degrees (2π).
The center of rotation can be changed by setting alignment
.
Set the animation duration in duration
.
Set the animation curve to curve
.
回転アニメーションを行います。
begin
に開始時の回転数を設定します。1.0で360度(2π)です。
end
に終了時の回転数を設定します。1.0で360度(2π)です。
alignment
を設定すると回転の中心を変更できます。
duration
にアニメーションの時間を設定します。
curve
にアニメーションのカーブを設定します。
Implementation
Future<void> rotate({
required Duration duration,
Curve curve = Curves.linear,
double begin = 0.0,
double end = 1.0,
Alignment? alignment,
}) {
return runAnimateQuery(
_RotateEffectQuery(
duration: duration,
curve: curve,
begin: begin,
end: end,
alignment: alignment,
),
);
}