removeUserAttributes method

Future<void> removeUserAttributes(
  1. Map<String, dynamic> parameters
)
override

Removes user profile attributes named in parameters.

Implementation

Future<void> removeUserAttributes(Map<String, dynamic> parameters) async {
  final attributesList = parameters['attributes'];
  if (attributesList == null) {
    throw ArgumentError('attributes parameter cannot be null');
  }
  final attributes =
      (attributesList as List).map((e) => e.toString()).toList();
  return await _userProfile.removeUserAttributes(attributes);
}