getColor method

  1. @protected
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: Appointment.color

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

Implementation

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