getEndTime method

  1. @override
DateTime getEndTime(
  1. int index
)

Maps the custom appointments end time to the Appointment.

Allows to set the custom appointments corresponding property to the Appointment's end time property.

Note: It is applicable only when the custom appointments set to the appointments.

It is mandatory to override this method to set custom appointments collection to the appointments.

See also:

  • Appointment.endTime, the date time value in which the appointment will end.
  • isAllDay, which used to map the custom appointment's Appointment.isAllDay property to the Appointment.
  • getStartTime, which used to map the custom appointment Appointment.startTime property to the Appointment.
  • getEndTimeZone, which used to map the custom appointment's Appointment.endTimeZone property to the Appointment.
  • SfCalendar.timeZone, to set the timezone for the calendar.
  • The documentation for time zone
 @override
 DateTime getEndTime(int index) {
   return appointments![index].to;
 }

Implementation

@override
DateTime getEndTime(int index) {
  return _getMeetingData(index).endTime;
}