setZoomRatio method
相机缩放 Camera zoom
Implementation
Future<bool> setZoomRatio(double ratio) async {
if (!_supportPlatform || cameraOptions.value == null) return false;
assert(_isInitialize, 'Call initialize first');
assert(ratio >= 1, 'ratio must be greater than or equal to 1');
final bool? state =
await _channel.invokeMethod<bool?>('setZoomRatio', ratio);
return state ?? false;
}