endOfWeek property
DateTime
get
endOfWeek
Returns the Sunday of this date's week (end of week).
Implementation
DateTime get endOfWeek =>
add(Duration(days: DateTime.sunday - weekday)).endOfDay;
Returns the Sunday of this date's week (end of week).
DateTime get endOfWeek =>
add(Duration(days: DateTime.sunday - weekday)).endOfDay;