TimeSlot constructor Null safety

TimeSlot(
  1. DateTime startDate,
  2. {DateTime? endDate}
)