scanCard static method

Future<ScannedCardModel?> scanCard({
  1. ScanOptions? scanOptions,
})

Implementation

static Future<ScannedCardModel?> scanCard({ScanOptions? scanOptions}) async {
  scanOptions ??= ScanOptions();
  final scanResult = await _channel.invokeMapMethod<String, dynamic>(
      'scan_card', scanOptions.map);
  if (scanResult != null) return ScannedCardModel.fromJson(scanResult);
  return null;
}