rotateOut method

Widget rotateOut({
  1. double? to,
  2. Offset origin = Offset.zero,
  3. 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,
  );
}