Interval constructor

const Interval(
  1. Instant? start,
  2. Instant? end
)

An interval between optional start (inclusive) and end (exclusive).

Implementation

const Interval(Instant? start, Instant? end)
    : _start = start,
      _end = end;