initSeatApplicationList method

void initSeatApplicationList(
  1. List<TUIRequest> list
)

Implementation

void initSeatApplicationList(List<TUIRequest> list) {
  seatApplicationList.value.clear();
  List<SeatApplication> newList = [];
  for (TUIRequest request in list) {
    SeatApplication application = SeatApplication(request.requestId);
    application.updateState(request);
    newList.add(application);
  }
  seatApplicationList.value = newList;
}