CalendarEventData<T> constructor

const CalendarEventData<T>({
  1. required String title,
  2. String description = "",
  3. T? event,
  4. Color color = Colors.blue,
  5. DateTime? startTime,
  6. DateTime? endTime,
  7. DateTime? endDate,
  8. required DateTime date,
})

Stores all the events on date

Implementation

const CalendarEventData({
  required this.title,
  this.description = "",
  this.event,
  this.color = Colors.blue,
  this.startTime,
  this.endTime,
  DateTime? endDate,
  required this.date,
}) : _endDate = endDate;