startOfWeek property

DateTime get startOfWeek

Returns the Monday of this date's week.

Implementation

DateTime get startOfWeek =>
    _calendarDate(year, month, day - weekday + DateTime.monday);