CalendarEvent constructor
const
CalendarEvent({
- required String title,
- required DateTime startDate,
- String? description,
- DateTime? endDate,
- dynamic location,
- bool isAllDay = false,
- String? timeZone,
- String? url,
- AndroidEventSettings? androidSettings,
- 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');