setProfileAttributes method

  1. @override
void setProfileAttributes({
  1. required Map<String, dynamic> attributes,
})
override

Set custom user profile information such as user preference, specific user actions etc

Implementation

@override
void setProfileAttributes({required Map<String, dynamic> attributes}) {
  try {
    final payload = {TrackingConsts.attributes: attributes};
    methodChannel.invokeMethod(MethodConsts.setProfileAttributes, payload);
  } on PlatformException catch (exception) {
    handleException(exception);
  }
}