isCheckRoom function

bool isCheckRoom({
  1. required String? status,
  2. required String? currentRoomName,
  3. required String? roomName,
})

Implementation

bool isCheckRoom({required String? status, required String? currentRoomName, required String? roomName}) {
  if (status?.isNotEmpty == true && roomName?.isNotEmpty == true && currentRoomName != roomName) {
    return true;
  }
  return true;
}