rotateWithDuration method
执行旋转动画
单位为度, 逆时针旋转
Implementation
Future<void> rotateWithDuration({
Duration duration = const Duration(seconds: 1),
double fromValue = 0,
required double toValue,
int repeatCount = 0,
int repeatMode = 0,
}) async {
await kMethodChannel.invokeMethod('UIView::rotateWithDuration', {
'__this__': this,
'duration': duration.inMilliseconds / 1000,
'fromValue': fromValue / 180 * pi,
'toValue': -toValue / 180 * pi,
'repeatCount': repeatCount,
'repeatMode': repeatMode,
});
}