updateScanWindow method
updates the native ScanWindow
Implementation
Future<void> updateScanWindow(Rect? window) async {
List? data;
if (window != null) {
data = [window.left, window.top, window.right, window.bottom];
}
await _methodChannel.invokeMethod('updateScanWindow', {'rect': data});
}