rotate method
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,
);
}