maxDate property

DateTime maxDate
final

The maximum date as much as the SfDateRangePicker will navigate.

The SfDateRangePicker 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 2100.

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

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.month,
         maxDate: DateTime(2029, 12, 31),
       ),
     ),
   );
 }

Implementation

final DateTime maxDate;