lastDayInPreviousWeek method
上周最后一天
firstWeekDay
- 设置每周起始日, assert(firstWeekDay > 0 && firstWeekDay < 7)
Implementation
DateTime lastDayInPreviousWeek([int firstWeekDay = 1]) {
assert(firstWeekDay > 0 && firstWeekDay < 7);
return this.subtract(Duration(days: 7)).lastDayInWeek(firstWeekDay);
}