getDeviceNFCLocation method

Future<DeviceNFCLocation> getDeviceNFCLocation({
  1. required ReadIDFlow flow,
})

Implementation

Future<DeviceNFCLocation> getDeviceNFCLocation({
  required ReadIDFlow flow,
}) {
  return Future.sync(() {
    return ReadIDPlatform.instance.getDeviceNFCLocation(flow: flow);
  }).catchError((error) {
    if (error is PlatformException && error.details != null) {
      throw Failure.fromJson(Map<String, dynamic>.from(error.details));
    }
    throw error;
  });
}