setUserIdentifier method

Future<void> setUserIdentifier(
  1. String identifier
)

Set the user identifier

Associates a unique identifier with the current user for tracking and attribution

identifier - A unique identifier for the current user

Throws GrovsException if the operation fails

Example:

await Grovs().setUserIdentifier('user-123');

Implementation

Future<void> setUserIdentifier(String identifier) {
  return GrovsPlatform.instance.setUserIdentifier(identifier);
}