CalendarEvent constructor

const CalendarEvent({
  1. required String id,
  2. required DateTime start,
  3. required DateTime end,
  4. required String title,
})

Creates an event. end should not precede start; this is not enforced because a diff over malformed data should still classify, not throw. Audited: 2026-06-12 11:26 EDT

Implementation

const CalendarEvent({
  required this.id,
  required this.start,
  required this.end,
  required this.title,
});