firstDayOfWeek property

date get firstDayOfWeek

Returns the first day of the week for the given date.

Implementation

date get firstDayOfWeek => subtract((weekday - 1).days);