static Future<String?> imgScan(String path) async { try { final rest = await _channel.invokeMethod("imgQrCode", {"file": path}); return rest; } catch (e) { print(e); return null; } }