rotate static method

Animation<double> rotate(
  1. AnimationController controller, {
  2. double turns = 1.0,
})

Rotation animation

Implementation

static Animation<double> rotate(
  AnimationController controller, {
  double turns = 1.0,
}) {
  return Tween<double>(begin: 0, end: turns).animate(
    CurvedAnimation(parent: controller, curve: smooth),
  );
}