rotate method
Rotates the widget.
Implementation
Widget rotate({
Key? key,
Duration duration = const Duration(milliseconds: 500),
Curve curve = Curves.easeInOut,
double begin = -0.5, // radians
double end = 0.0,
}) {
return _AnimatedWrapper(
key: key,
type: _AnimationType.rotate,
duration: duration,
curve: curve,
rotateBegin: begin,
rotateEnd: end,
child: this,
);
}