onSelectionChanged property

CalendarSelectionChangedCallback? onSelectionChanged
final

Called whenever a SfCalendar cell is selected.

The callback details argument contains the selected date and its resource details.

see also:


return Container(
     child: SfCalendar(
       view: CalendarView.timelineDay,
       onSelectionChanged: (CalendarSelectionDetails details){
         DateTime date = details.date!;
         CalendarResource resource = details.resource!;
       },
     ),
   );
 }

Implementation

final CalendarSelectionChangedCallback? onSelectionChanged;