rotate45 method

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

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

Implementation

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