rotate method

Widget rotate({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 500),
  3. Curve curve = Curves.easeInOut,
  4. double begin = -0.5,
  5. double end = 0.0,
})

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,
  );
}