callScanCardID method

Future<void> callScanCardID(
  1. int documentType
)
override

Implementation

Future<void> callScanCardID(int documentType) async {
  try {
    await _scanningChannel.invokeMethod('scanCard', documentType);
    print('Method called in AppDelegate');
  } on PlatformException catch (e) {
    print("Failed to invoke method: '${e.message}'.");
  } catch (e) {
    print("catch an error = $e}");
  }
}