specialDates property Null safety

List<HijriDateTime>? specialDates

In the month view of SfHijriDateRangePicker highlights the unique dates with different style rather than the other dates style.

Defaults to null.

Use HijriDatePickerMonthCellStyle.specialDatesTextStyle or HijriDatePickerMonthCellStyle.specialDatesDecoration property to customize the appearance of blackout dates in month view.

See also: HijriDatePickerMonthCellStyle.specialDatesTextStyle,which used to set text style for the text in special dates cell in the month view. HijriDatePickerMonthCellStyle.specialDatesDecoration, which used to set decoration for the special dates cell in the month view.

Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
             specialDates: <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))


final List<HijriDateTime>? specialDates;