rotation static method
A transition that rotates the child.
Implementation
static Widget rotation(
AnimationController controller,
Widget child, {
Curve curve = Curves.easeInOut,
}) {
return RotationTransition(
turns: CurvedAnimation(parent: controller, curve: curve),
child: child,
);
}