copyWith method

Interval copyWith({
  1. Instant? start,
  2. Instant? end,
})

Copy this inteval with optional start and/or end instants changed.

Implementation

Interval copyWith({Instant? start, Instant? end}) =>
    Interval(start ?? _start, end ?? _end);