copyWith method

DateInterval copyWith({
  1. Date? newStart,
  2. Date? newEnd,
})

Implementation

DateInterval copyWith({Date? newStart, Date? newEnd}) => DateInterval(start: newStart ?? start, end: newEnd ?? end);