daysInWeek method
Returns a list of DateTime
s in a given week, with 7 items ranging from
Sunday to Saturday.
Implementation
static List<DateTime> daysInWeek(DateTime week) {
final first = firstDayOfWeek(week);
final last = lastDayOfWeek(week);
return daysInRange(first, last).toList();
}