alias method

void alias(
  1. String newId, {
  2. RudderOption? options,
})

Creates an alias for the current user with a newId.

newId is the new identifier to associate with the current user. options allows you to specify additional options for this call.

This method links two user identities together.

Implementation

void alias(String newId, {RudderOption? options}) {
  RudderSdkPlatform.instance.alias(newId, options: options);
}