weekendDays property

List<int> weekendDays
final

The weekends for month view in SfHijriDateRangePicker.

Defaults to <int>[6,7] represents <int>[DateTime.saturday, DateTime.sunday].

Note: The weekendDays will not be highlighted until it's customize by using the HijriDatePickerMonthCellStyle.weekendTextStyle or HijriDatePickerMonthCellStyle.weekendDatesDecoration property.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         monthViewSettings: HijriDatePickerMonthViewSettings(
            weekendDays: <int>[DateTime.friday, DateTime.saturday]),
       ),
     ),
   );
 }

Implementation

final List<int> weekendDays;