resetZoomScale method

Future<void> resetZoomScale()

Reset the zoom scale of the camera.

Does nothing if the camera is not running.

Implementation

Future<void> resetZoomScale() async {
  _throwIfNotInitialized();

  if (!value.isRunning) {
    return;
  }

  // When the platform has updated the zoom scale,
  // it will send an update through the zoom scale state event stream.
  await MobileScannerPlatform.instance.resetZoomScale();
}