datesOnly method
Returns a DateTimeRange with the dates of the original, but with times set to midnight.
See also:
- dateOnly, which does the same thing for a single date.
Implementation
@override
DateTimeRange<DateTime> datesOnly(DateTimeRange<DateTime> range) {
_requireCalendarDate(range.start, 'range.start');
_requireCalendarDate(range.end, 'range.end');
return super.datesOnly(range);
}