zoomCamera method
Zooms the camera to the specified zoom level.
zoomValue
: The zoom level to set, typically between 1.0 (no zoom) and the maximum zoom level supported by the device.
Returns a Future that completes with the result of the zoom operation. Throws an Exception if the zoom operation fails.
Implementation
@override
Future<dynamic> zoomCamera(double zoomValue) async {
try {
return await methodChannel
.invokeMethod<void>("zoomCamera", <String, dynamic>{
'zoom': zoomValue,
});
} catch (e) {
throw Exception("$e [Zoom Camera]");
}
}