rotate static method

Transform rotate({
  1. required Widget child,
  2. required Animation<double> animation,
})

rotate Animation

Implementation

static Transform rotate({
  /// child
  required Widget child,

  /// animation
  required Animation<double> animation,
}) {
  return Transform.rotate(
    angle: math.radians(animation.value * 360),
    child: Opacity(
      opacity: animation.value,
      child: child,
    ),
  );
}