todayHighlightColor property Null safety

Color? todayHighlightColor
final

Color that highlights the today cell in SfCalendar.

Allows to change the color that highlights the today cell in month view, and view header of day/week/workweek, timeline view and highlights the date in month agenda view in SfCalendar.

Defaults to null.

Using a SfCalendarTheme gives more fine-grained control over the appearance of various components of the calendar.


Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.week,
       todayHighlightColor: Colors.red,
     ),
   );
 }

Implementation

final Color? todayHighlightColor;