rotate method

Future<void> rotate({
  1. required Duration duration,
  2. Curve curve = Curves.linear,
  3. double begin = 0.0,
  4. double end = 1.0,
  5. Alignment? alignment,
})

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,
    ),
  );
}