lastDayOfWeek property

DateTime lastDayOfWeek

Returns the Sunday of this week

Implementation

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