purgeAllRecoveryInfoFor method

Future<int> purgeAllRecoveryInfoFor(
  1. String sdkId,
  2. String dataOwnerId
)

Implementation

Future<int> purgeAllRecoveryInfoFor(String sdkId, String dataOwnerId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'RecoveryApi.purgeAllRecoveryInfoFor',
		{
			"sdkId": sdkId,
			"dataOwnerId": jsonEncode(dataOwnerId),
		}
	).catchError(convertPlatformException);
	if (res == null) throw AssertionError("received null result from platform method purgeAllRecoveryInfoFor");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as int);
}