rotateOut static method
旋转退出动画
Implementation
static RotationTransition rotateOut(
Animation<double> animation,
Widget child,
) {
return RotationTransition(
turns: Tween<double>(begin: 0.0, end: 1.0).animate(
CurvedAnimation(
parent: animation,
curve: Curves.easeOut,
),
),
child: FadeTransition(
opacity: animation,
child: child,
),
);
}