firstDayOfWeek property

int firstDayOfWeek
final

The first day of the week in the SfCalendar.

Allows to change the first day of week in all possible views in calendar, every view's week will start from the date set to this property.

Defaults to 7 which indicates DateTime.sunday.

See also:


Widget build(BuildContext context) {
   return Container(
     child: SfCalendar(
       view: CalendarView.week,
       firstDayOfWeek: 3,
     ),
   );
 }

Implementation

final int firstDayOfWeek;