imgScan static method

Future<String?> imgScan(
  1. File file
)

Implementation

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