blackoutDatesDecoration property Null safety

Decoration? blackoutDatesDecoration
final

The decoration for the blackout date cells of SfHijriDateRangePicker month view.

Defaults to null.

Using a SfDateRangePickerTheme gives more fine-grained control over the appearance of various components of the date range picker.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.month,
         enablePastDates: false,
         selectionMode: DateRangePickerSelectionMode.multiRange,
         monthCellStyle: HijriDatePickerMonthCellStyle(
           blackoutDatesDecoration: BoxDecoration(
               color: Colors.black,
               border: Border.all(color: const Color(0xFF2B732F),
                    width: 1),
               shape: BoxShape.circle),
         ),
       ),
     ),
   );
 }

Implementation

final Decoration? blackoutDatesDecoration;