DateToEventIds typedef Events
Maps calendar dates to sets of event IDs that occur on those dates.
The DateTime keys represent calendar dates (typically at midnight UTC) and the Set<int> values contain the IDs of all events that span or occur on that date.
This structure enables efficient lookup of events within date ranges by checking only the relevant date entries.
Example:
{
DateTime.utc(2024, 1, 15): {101, 102, 105},
DateTime.utc(2024, 1, 16): {103, 105},
}
Implementation
typedef DateToEventIds = Map<String, Set<String>>;