firstDayOfWeek property

int firstDayOfWeek
final

The first day of the week in the SfHijriDateRangePicker month view.

Allows you to change the first day of the week in the month view, every month view will start from the day set to that property.

Defaults to 7 which indicates DateTime.sunday.

See also:


Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: SfHijriDateRangePicker(
         controller: _pickerController,
         view: HijriDatePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         monthViewSettings:
             HijriDatePickerMonthViewSettings(firstDayOfWeek: 2),
       ),
     ),
   );
 }

Implementation

final int firstDayOfWeek;