blackoutDates property Null safety

List<HijriDateTime>? blackoutDates
final

Disables the interactions for certain dates in the month view of SfHijriDateRangePicker.

Defaults to null.

Use HijriDatePickerMonthCellStyle.blackoutDateTextStyle or HijriDatePickerMonthCellStyle.blackoutDatesDecoration property to customize the appearance of blackout dates in month view.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         monthViewSettings:
             HijriDatePickerMonthViewSettings(
             blackoutDates: <HijriDateTime>[
              HijriDateTime.now().add(Duration(days: 2)),
              HijriDateTime.now().add(Duration(days: 3)),
              HijriDateTime.now().add(Duration(days: 6)),
              HijriDateTime.now().add(Duration(days: 7))
         ]),
       ),
     ),
   );
 }

Implementation

final List<HijriDateTime>? blackoutDates;