getRoomByAlias method

Room? getRoomByAlias(
  1. String alias
)

Implementation

Room? getRoomByAlias(String alias) {
  for (final room in rooms) {
    if (room.canonicalAlias == alias) return room;
  }
  return null;
}