CalendarEvent constructor

const CalendarEvent({
  1. required String title,
  2. required DateTime startDate,
  3. String? description,
  4. DateTime? endDate,
  5. dynamic location,
  6. bool isAllDay = false,
  7. String? timeZone,
  8. String? url,
  9. AndroidEventSettings? androidSettings,
  10. IosEventSettings? iosSettings,
})

Implementation

const CalendarEvent({
  required this.title,
  required this.startDate,
  this.description,
  this.endDate,
  this.location,
  this.isAllDay = false,
  this.timeZone,
  this.url,
  this.androidSettings,
  this.iosSettings,
}) : assert(
          location == null || location is String || location is EventLocation,
          'Location must be either a String or EventLocation object');