days method
Generates an iterable of DateTime objects representing each day within the date range.
Implementation
Iterable<DateTime> days() sync* {
var i = startDate;
while (i.isBefore(endDate)) {
yield i;
i = i.add(const Duration(days: 1));
}
yield endDate;
}