reset method

  1. @override
Future reset({
  1. bool? resetAnonymousId = true,
})
override

Implementation

@override
Future reset({bool? resetAnonymousId = true}) async {
  final anonymousId =
      resetAnonymousId == true ? const Uuid().v4() : (await state.userInfo.state).anonymousId;

  state.userInfo.setState(UserInfo(anonymousId));

  getPluginsWithReset(_timeline).forEach((plugin) => plugin.reset());

  log("Client has been reset", kind: LogFilterKind.debug);
}