maxDate property

DateTime maxDate

The maximum date as much as the SfCalendar will navigate.

The SfCalendar widget will navigate as maximum as to the given date, and the dates after that date will be disabled for interaction and navigation to those dates were restricted.

Defaults to 31st December of 9999.

Note: If the initialDisplayDate property set with the date after to this date, the SfCalendar will take this date as a display date and render dates based on the date set to this property.

See also:

Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.week,
       maxDate: new DateTime(2020, 01, 15, 9, 0, 0),


final DateTime maxDate;