scaleWithDuration method
执行缩放动画
Implementation
Future<void> scaleWithDuration({
Duration duration = const Duration(seconds: 1),
double fromValue = 0,
required double toValue,
int repeatCount = 0,
int repeatMode = 1,
}) async {
assert(fromValue >= 0);
assert(toValue >= 0);
await kMethodChannel.invokeMethod('UIView::scaleWithDuration', {
'__this__': this,
'duration': duration.inMilliseconds / 1000,
'fromValue': fromValue,
'toValue': toValue,
'repeatCount': repeatCount,
'repeatMode': repeatMode,
});
}