flipX method

Widget flipX({
  1. Key? key,
  2. double? radian,
})

Extension method to rotate along X-axis any widget without wrapping or with dot operator.

Implementation

Widget flipX({Key? key, double? radian}) => Transform(
      key: key,
      transform: Matrix4.rotationX(radian ?? 90),
      child: this,
    );