dynamic operator ==(Interval i)

Equals operator on intervals.

[a, b] == [c, d], if a == c && b == d

Source

operator==(Interval i) => this.min == i.min && this.max == i.max;