setUserProfile method
User attribute values remain unchanged throughout the app's lifecycle and session. A maximum of 25 user attribute names are supported. If an attribute name is duplicate with an existing one, the attribute names needs to be changed.
Implementation
Future<void> setUserProfile(String key, String value) async {
dynamic params = {'key': key, 'value': value};
await _channel.invokeMethod('setUserProfile', params);
}