getColor method

  1. @override
Color getColor(
  1. int index
)
override

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

@override
Color getColor(int index) => appointments?[index].color;