Appointment constructor
Appointment({
- String? startTimeZone,
- String? endTimeZone,
- String? recurrenceRule,
- bool isAllDay = false,
- String? notes,
- String? location,
- List<
Object> ? resourceIds, - Object? recurrenceId,
- Object? id,
- required DateTime startTime,
- required DateTime endTime,
- String subject = '',
- Color color = Colors.lightBlue,
- List<
DateTime> ? recurrenceExceptionDates,
Creates an appointment data for SfCalendar.
An object that contains properties to hold the detailed information about the data, which will be rendered in SfCalendar.
Implementation
Appointment({
this.startTimeZone,
this.endTimeZone,
this.recurrenceRule,
this.isAllDay = false,
String? notes,
this.location,
this.resourceIds,
this.recurrenceId,
this.id,
required this.startTime,
required this.endTime,
this.subject = '',
this.color = Colors.lightBlue,
this.recurrenceExceptionDates,
}) : notes = notes != null && notes.contains('isOccurrenceAppointment')
? notes.replaceAll('isOccurrenceAppointment', '')
: notes,
_notes = notes {
recurrenceRule = recurrenceId != null ? null : recurrenceRule;
_appointmentType = _getAppointmentType();
id = id ?? hashCode;
}