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