contains method

bool contains(
  1. Interval other
)

Returns true if this interval contains the other interval.

Implementation

bool contains(Interval other) => other.start >= start && other.end <= end;