getRoomName method

String getRoomName(
  1. int roomId
)

Implementation

String getRoomName(int roomId) {
  String res="";
  for(DoomRoom dr in doomRooms!){
    if(dr.id == roomId) {res=dr.name; break;}
  }
  return res;
}