getOnlineStatusByUserId method
Implementation
bool getOnlineStatusByUserId({required String userID}) {
bool res = false;
int idx = _userStatus.indexWhere((element) => element.userID == userID);
if (idx > -1) {
if (_userStatus[idx].statusType == 1) {
res = true;
}
}
return res;
}