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