DateRange constructor Null safety

DateRange(
  1. {Date? endDate,
  2. Date? startDate}
)

Implementation

DateRange({
  this.endDate,
  this.startDate,
});