logLogin method
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));
}