getNotes method Null safety

String? getNotes(
  1. int index

Maps the custom appointments notes to the Appointment.

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

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

See also: Appointment.notes

 DateTime getNotes(int index) {
   return appointments[index].notes;


String? getNotes(int index) => null;