updateSeatList method

void updateSeatList(
  1. List<TUISeatInfo> list
)

Implementation

void updateSeatList(List<TUISeatInfo> list) {
  List<SeatInfo> newList = [];
  for (TUISeatInfo info in list) {
    if (filterEmptySeat && info.userId.isEmpty) {
      continue;
    }
    SeatInfo seatInfo = SeatInfo();
    seatInfo.updateState(info);
    newList.add(seatInfo);
  }
  seatList.value = newList;
}