updateScanWindow method
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});
}