setUserAttributes method
Set user attributes
Associates custom attributes with the current user for segmentation and personalization
attributes - A map of key-value pairs representing user attributes
Throws GrovsException if the operation fails
Example:
await Grovs().setUserAttributes({
'name': 'John Doe',
'email': 'john@example.com',
'age': 30,
'premium': true,
'signupDate': '2024-01-01',
});
Implementation
Future<void> setUserAttributes(Map<String, dynamic> attributes) {
return GrovsPlatform.instance.setUserAttributes(attributes);
}