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