add method

void add(
  1. DateTime date,
  2. T event
)

Implementation

void add(DateTime date, T event) {
  final eventsOfDate = events[date];
  if (eventsOfDate == null)
    events[date] = [event];
  else
    eventsOfDate.add(event);
}