DateRange constructor

DateRange({
  1. required Date start,
  2. required Date end,
})

Creates a date range for the given start and end DateTime.

Implementation

DateRange({
  required this.start,
  required this.end,
}) : assert(!start.isAfter(end));