lastDayOfWeek method
Create a new last date of this week.
Implementation
DateTime lastDayOfWeek() => add(Duration(days: DateTime.daysPerWeek - weekday));
Create a new last date of this week.
DateTime lastDayOfWeek() => add(Duration(days: DateTime.daysPerWeek - weekday));