getDocumentNFCLocation method
Implementation
@override
Future<DocumentNFCLocation> getDocumentNFCLocation(
{required ReadIDFlow flow}) async {
final result =
await methodChannel.invokeMethod<Map>('getDocumentNFCLocation', {
...{'flow': flow.obfuscationSafeStringify()},
...{'properties': flow.toJson()}
});
final String? value = result?['documentNFCLocation'];
if (value != null) {
return value.toDocumentNFCLocation();
} else {
throw Exception(
"Document NFC Location value is missing or null in response.");
}
}