onSeatApplicationReceived method

void onSeatApplicationReceived({
  1. required TUIUserInfo from,
})

Implementation

void onSeatApplicationReceived({required TUIUserInfo from}) {
  if (!state.seatApplicationList.value
      .any((seatApplication) => seatApplication.userId == from.userId)) {
    final List<SeatApplication> seatApplicationList =
        List.from(state.seatApplicationList.value);
    seatApplicationList.add(SeatApplication.fromTUIUserInfo(from));
    state.seatApplicationList.value = seatApplicationList;
  }
}