rotate method

Widget rotate({
  1. required double angle,
  2. Offset? origin,
  3. AlignmentGeometry? alignment = Alignment.center,
  4. bool transformHitTests = true,
  5. Key? key,
})

Implementation

Widget rotate({
  required double angle,
  Offset? origin,
  AlignmentGeometry? alignment = Alignment.center,
  bool transformHitTests = true,
  Key? key,
}) {
  return Transform.rotate(
    angle: angle,
    origin: origin,
    alignment: alignment,
    transformHitTests: transformHitTests,
    child: this,
    key: key,
  );
}