firstDayOfWeekIndex property

int firstDayOfWeekIndex

Index of the first day of week, where 0 points to Sunday, and 6 points to Saturday.

This getter is compatible with narrowWeekdays. For example:

 MaterialLocalizations localizations = MaterialLocalizations.of(context);
// The name of the first day of week for the current locale.
String firstDayOfWeek = localizations.narrowWeekdays[localizations.firstDayOfWeekIndex];

Implementation

int get firstDayOfWeekIndex;