confirmUserAttribute method

Implementation

@override
Future<ConfirmUserAttributeResult> confirmUserAttribute(
    {ConfirmUserAttributeRequest? request}) async {
  var userAttributeKey = request?.userAttributeKey;
  _checkUserAttributeKey(userAttributeKey);
  try {
    await _channel.invokeMapMethod<String, dynamic>(
      'confirmUserAttribute',
      <String, dynamic>{
        'data': request != null ? request.serializeAsMap() : null,
      },
    );
    return _formatConfirmUserAttributeResponse();
  } on PlatformException catch (e) {
    throw castAndReturnPlatformException(e);
  }
}