rotate method
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,
);