endOfWeek property
DateTime
get
endOfWeek
Returns the Sunday of this date's week (end of week).
Implementation
DateTime get endOfWeek =>
_calendarDate(year, month, day + DateTime.sunday - weekday).endOfDay;