firstDayOfWeek property

int firstDayOfWeek
final

The first day of the week in the SfDateRangePicker 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: SfDateRangePicker(
         controller: _pickerController,
         view: DateRangePickerView.month,
         selectionMode: DateRangePickerSelectionMode.range,
         monthViewSettings:
             DateRangePickerMonthViewSettings(firstDayOfWeek: 2),
       ),
     ),
   );
 }

Implementation

final int firstDayOfWeek;