setZoom method

Future<void> setZoom(
  1. double zoom
)

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);
  _zoomController.sink.add(zoom);
}