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