weekendDays property

List<int> weekendDays
final

The weekends for month view in SfDateRangePicker.

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 DateRangePickerMonthCellStyle.weekendTextStyle or DateRangePickerMonthCellStyle.weekendDatesDecoration property.


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

Implementation

final List<int> weekendDays;