rotateN180 method

Widget rotateN180({
  1. Key? key,
})

Extension method to rotate any widget by 180 degrees anti-clockwise without wrapping or with dot operator.

Implementation

Widget rotateN180({Key? key}) => Transform.rotate(
      key: key,
      angle: -math.pi,
      child: this,
    );