addConference method
void
addConference(
- TUIConferenceInfo newConference
Implementation
void addConference(TUIConferenceInfo newConference) {
DateTime utcDateTime = DateTime.fromMillisecondsSinceEpoch(
newConference.scheduleStartTime! * 1000,
isUtc: true);
DateTime localDateTime = utcDateTime.toLocal();
final date =
DateTime(localDateTime.year, localDateTime.month, localDateTime.day);
if (!groupedConferences.value.containsKey(date)) {
groupedConferences.value[date] = [];
}
var conferences = groupedConferences.value[date]!;
int insertIndex = _binarySearchInsertIndex(conferences, newConference);
conferences.insert(insertIndex, newConference);
}