getMaxZoomLevel method Null safety

Future<double> getMaxZoomLevel()

Gets the maximum supported zoom level for the selected camera.

Implementation

Future<double> getMaxZoomLevel() {
  _throwIfNotInitialized('getMaxZoomLevel');
  try {
    return CameraPlatform.instance.getMaxZoomLevel(_cameraId);
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}