appointmentType property

AppointmentType get appointmentType

Specifies the appointment type, which is used to distinguish appointments based on their functionality.

This is read-only.

Defines the appointment type for the Appointment.

Also refer: AppointmentType, to know more about the available appointment types in calendar.

Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.day,
       dataSource: dataSource,
              onTap: (CalendarTapDetails details){
                for(int i=0; i<details.appointments.length; i++){
                  AppointmentType appointmentTpe =
                    details.appointments[i].appointmentType);
              },
     ),
   );
 }

Implementation

AppointmentType get appointmentType => _appointmentType;