updateScanWindow method

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

updates the native ScanWindow

Implementation

Future<void> updateScanWindow(Rect? window) async {
  List? data;
  if (window != null) {
    data = [
      window.left,
      window.top,
      window.width,
      window.height,
    ];
  }

  await _methodChannel.invokeMethod('updateScanWindow', {'rect': data});
}