logLogin method

void logLogin({
  1. String? userId,
  2. String? username,
})

Implementation

void logLogin({String? userId, String? username}) {
  logEvent("loggedIn", {"userId": userId, "username": username});
  _onEach((p) => p.identify(userId: userId, username: username));
  _onEach((p) => p.setUserProperties(_globalProps));
}