getOnlineStatusByUserId method

bool getOnlineStatusByUserId({
  1. required String userID,
})

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;
}