rotate method

Widget rotate({
  1. Duration duration = const Duration(milliseconds: 300),
  2. Curve curve = Curves.easeOut,
  3. double beginAngle = 0.05,
})

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