animateRotation method
Wraps a widget in a rotation effect
Implementation
Widget animateRotation({
Key? key,
double turns = 0.0,
Duration duration = const Duration(milliseconds: 400),
Curve curve = MotionCurves.swiftOut,
}) {
return AnimatedRotation(
key: key,
turns: turns,
duration: duration,
curve: curve,
child: this,
);
}