rotate method

Widget rotate({
  1. double turns = 0.0,
  2. Duration duration = const Duration(milliseconds: 300),
  3. Curve curve = Curves.easeInOut,
})

Implementation

Widget rotate({
  double turns = 0.0,
  Duration duration = const Duration(milliseconds: 300),
  Curve curve = Curves.easeInOut,
}) => AnimatedRotation(
  turns: turns,
  duration: duration,
  curve: curve,
  child: this,
);