firstDayInNextWeek method
下周第一天
firstWeekDay
- 设置每周起始日, assert(firstWeekDay > 0 && firstWeekDay < 7)
Implementation
DateTime firstDayInNextWeek([int firstWeekDay = 1]) {
assert(firstWeekDay > 0 && firstWeekDay < 7);
return this.add(Duration(days: 7)).firstDayInWeek(firstWeekDay);
}