DateTimeRange constructor Null safety
Creates a date range for the given start and end DateTime.
Implementation
DateTimeRange({
required this.start,
required this.end,
}) : assert(start != null),
assert(end != null),
assert(!start.isAfter(end));