getLoggedInUser static method
Retrieves the logged-in user from the CurrentUserRepository.
Implementation
static Future<User?> getLoggedInUser() async {
_loggedInUser ??= await CurrentUserRepository.getLoggedInUser();
if (_loggedInUser != null &&
_loggedInUser?.status == UserStatusConstants.offline) {
_loggedInUser?.status = UserStatusConstants.online;
}
return _loggedInUser;
}