CalendarEvent constructor

CalendarEvent(
  1. String title,
  2. DateTime initTime,
  3. DateTime endTime, {
  4. String? description,
})

Implementation

CalendarEvent(this.title, this.initTime, this.endTime, {String? description})
    : description = description ?? '' {
  if (endTime.compareTo(initTime) < 0) {
    throw ArgumentError(
        'endTime <  initTime: initTime:$initTime .. endTime:$endTime');
  }
}