firstDayOfWeek property

DateTime get firstDayOfWeek

Returns the Monday of this week

Implementation

DateTime get firstDayOfWeek =>
    isUtc ? DateTime.utc(year, month, day + 1 - weekday) : DateTime(year, month, day + 1 - weekday);