setAttributes static method Null safety

Future<void> setAttributes(
  1. Map<String, String> attributes
)

Subscriber Attributes

Subscriber attributes are useful for storing additional, structured information on a user. Since attributes are writable using a public key they should not be used for managing secure or sensitive information such as subscription status, coins, etc.

Key names starting with "$" are reserved names used by RevenueCat. For a full list of key restrictions refer to our guide: https://docs.revenuecat.com/docs/subscriber-attributes

attributes Map of attributes by key. Set the value as an empty string to delete an attribute.

Implementation

/// Subscriber attributes are useful for storing additional, structured information on a user.
/// Since attributes are writable using a public key they should not be used for
/// managing secure or sensitive information such as subscription status, coins, etc.
///
/// Key names starting with "$" are reserved names used by RevenueCat. For a full list of key
/// restrictions refer to our guide: https://docs.revenuecat.com/docs/subscriber-attributes
///
/// [attributes] Map of attributes by key. Set the value as an empty string to delete an attribute.
static Future<void> setAttributes(Map<String, String> attributes) =>
    _channel.invokeMethod('setAttributes', {'attributes': attributes});