getSubject method
Maps the custom appointments subject to the Appointment
.
Allows to set the custom appointments corresponding property to the
Appointment
's subject property.
Note: It is applicable only when the custom appointments set to the appointments.
See also:
Appointment.subject
, which holds the subject of the appointment which will be displayed on the event UI.SfCalendar.appointmentTextStyle
, to customize the appointment text, when the builder not added.- Knowledge base: How to style appointments
@override
DateTime getSubject(int index) {
return appointments![index].title;
}
Implementation
@override
String getSubject(int index) {
return _getMeetingData(index).subject;
}