operator == method
Compares if this
and other
are equal
Implementation
@override
bool operator ==(other) {
if (other is Extent<E>) {
if (other.lower != lower) return false;
if (other.upper != upper) return false;
return true;
} else if (other is Iterable<E>) {
if (other.length != 2) return false;
if (other.elementAt(0) != lower) return false;
if (other.elementAt(1) != upper) return false;
return true;
}
return false;
}