rotate method
二维平面旋转
angle 旋转角度, 使用角度, 顺时针方向
basePoint 旋转中心点,默认为控件中心
返回应用了旋转变换的Widget
Implementation
Widget rotate({double angle = 0, Alignment basePoint = Alignment.center}) {
return Transform.rotate(
angle: angle * pi / 180,
child: this,
);
}