removeConference method
void
removeConference(
- String roomId
)
Implementation
void removeConference(String roomId) {
DateTime? dateToRemove;
TUIConferenceInfo? conferenceToRemove;
groupedConferences.value.forEach((date, conferences) {
for (var conference in conferences) {
if (conference.basicRoomInfo.roomId == roomId) {
dateToRemove = date;
conferenceToRemove = conference;
break;
}
}
if (conferenceToRemove != null) {
return;
}
});
if (dateToRemove != null && conferenceToRemove != null) {
_removeConferenceInfo(dateToRemove!, conferenceToRemove!);
}
groupedConferences.refresh();
}