reservations static method

void reservations({
  1. UHotelResponse? hotel,
  2. UHotelRoomResponse? room,
})

Implementation

static void reservations({UHotelResponse? hotel, UHotelRoomResponse? room}) => U.addOrSwitchTab(
  room != null
      ? "${U.s.reservations} · ${room.title}"
      : hotel != null
      ? "${U.s.reservations} · ${hotel.title}"
      : U.s.reservations,
  UAdminReservationPage(hotel: hotel, room: room),
);