rotateOut method
Widget
rotateOut({
- double? to,
- Offset origin = Offset.zero,
- AlignmentGeometry alignment = Alignment.center,
Applies a RotationEffect to a Widget to rotate it out.
Implementation
Widget rotateOut({
double? to,
Offset origin = Offset.zero,
AlignmentGeometry alignment = Alignment.center,
}) {
return EffectWidget(
start: RotationEffect(angle: 0, origin: origin, alignment: alignment),
end: RotationEffect(angle: to ?? pi / 2),
child: this,
);
}