resendUserAttributeConfirmationCode method
Implementation
@override
Future<ResendUserAttributeConfirmationCodeResult>
resendUserAttributeConfirmationCode({
ResendUserAttributeConfirmationCodeRequest? request,
}) async {
var userAttributeKey = request?.userAttributeKey;
_checkUserAttributeKey(userAttributeKey);
try {
final Map<String, dynamic>? data =
await _channel.invokeMapMethod<String, dynamic>(
'resendUserAttributeConfirmationCode',
<String, dynamic>{
'data': request != null ? request.serializeAsMap() : null,
},
);
if (data == null)
throw AmplifyException(
AmplifyExceptionMessages.nullReturnedFromMethodChannel);
return _formatResendUserAttributeConfirmationCodeResponse(data);
} on PlatformException catch (e) {
throw castAndReturnPlatformException(e);
}
}