updateScanWindow method

Future<void> updateScanWindow(
  1. Rect? window
)

Update the scan window with the given window rectangle.

If window is null, the scan window will be reset to the full camera preview.

Implementation

Future<void> updateScanWindow(Rect? window) async {
  if (_isDisposed || !value.isInitialized) {
    return;
  }

  await MobileScannerPlatform.instance.updateScanWindow(window);
}