getColor method

Color getColor(
  1. int index
)

Maps the custom appointments color to the Appointment.

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

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

See also:

 @override
 DateTime getColor(int index) {
   return appointments![index].background;
 }

Implementation

Color getColor(int index) => Colors.lightBlue;