rotate90 method

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

Extension method to rotate any widget by 90 degrees without wrapping or with dot operator.

Implementation

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