lastDayOfWeek property
DateTime
get
lastDayOfWeek
Returns the last day of the current week.
Implementation
DateTime get lastDayOfWeek =>
add(Duration(days: DateTime.daysPerWeek - weekday)).endOfDay;
Returns the last day of the current week.
DateTime get lastDayOfWeek =>
add(Duration(days: DateTime.daysPerWeek - weekday)).endOfDay;