dayOfWeek property
int
get
dayOfWeek
Returns the day of the week according to the Locale.startOfWeek()
.
The return value is an integer between 1 and 7, where 1 represents the
Locale.startOfWeek()
By default, the day of the week is calculated based on the locale provided
during Jiffy initialization. If no locale was provided, it uses the
default en_us
locale.
Implementation
int get dayOfWeek => _getter.dayOfWeek(dateTime, _locale.startOfWeek());