rotate method
Rotates the widget.
Implementation
Widget rotate({
Duration duration = const Duration(milliseconds: 300),
Curve curve = Curves.easeOut,
double beginAngle = 0.05,
}) {
return _animate(
type: .rotate,
duration: duration,
curve: curve,
beginAngle: beginAngle,
child: this,
);
}