toDateRange method

DateRange toDateRange()

Extracts the calendar date range from this DateTimeRange.

Implementation

DateRange toDateRange() {
  return DateRange(
    start: start.toDate(),
    end: end.toDate(),
  );
}