DateTime next(int day) { int days = (day - this.weekday) % DateTime.daysPerWeek; return this.add( Duration( days: days != 0 ? days : 7, ), ); }