setZoom method
Implementation
Future<void> setZoom(double zoom) async {
if (zoom < 0 || zoom > 1) {
throw "Zoom value must be between 0 and 1";
}
await CamerawesomePlugin.setZoom(zoom);
if (!_zoomController.isClosed) {
_zoomController.sink.add(zoom);
}
}