rotate method

Widget rotate({
  1. required double angle,
  2. bool transformHitTests = true,
  3. Offset? origin,
})

add rotation to parent widget

Implementation

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