includes method

bool includes(
  1. Interval i
)

Inclusion relation. Returns true, if the given interval is included in this interval.

[a, b] subset of [c, d] <=> c <= a && b >= d

Implementation

bool includes(Interval i) => this.min <= i.min && i.max <= this.max;