enablePastDates property

bool enablePastDates
final

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

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: SfHijriDateRangePicker(
         view: HijriDatePickerView.month,
         enablePastDates: false,
       ),
     ),
   );
 }

Implementation

final bool enablePastDates;