enablePastDates property Null safety

bool enablePastDates
final

Allows to disable the dates falls before the today date in SfDateRangePicker.

If it is set as false the dates falls before the today date is disabled and selection interactions to that dates were restricted.

Defaults to true.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfDateRangePicker(
         view: DateRangePickerView.month,
         enablePastDates: false,
       ),
     ),
   );
 }

Implementation

final bool enablePastDates;