reset method

void reset({
  1. bool clearAnonymousId = false,
})

Resets the user identity and clears stored user data.

clearAnonymousId determines whether to clear the anonymous ID. When set to true, a new anonymous ID will be generated.

This method is typically called when a user logs out.

Implementation

void reset({bool clearAnonymousId = false}) {
  RudderSdkPlatform.instance.reset(clearAnonymousId: clearAnonymousId);
}