clearUserId static method

Future<void> clearUserId()

Clears the persisted user identifier.

This preserves the install's anonymous identifier but resets the analytics session for the next event. Any attributes set with setUserAttributes are dropped along with it — they described the user who has just left.

Implementation

static Future<void> clearUserId() {
  return SDKInstance.instance.clearUserId();
}