copyWith method

TimeInterval copyWith({
  1. Time? newStart,
  2. Time? newEnd,
})

Implementation

TimeInterval copyWith({Time? newStart, Time? newEnd}) => TimeInterval(start: newStart ?? start, end: newEnd ?? end);