operator == method
Returns true
if this interval starts and ends same as the other
interval.
See compareTo for detailed interval comparison rules.
Implementation
@override
bool operator ==(Object other) {
return other is Interval && start == other.start && end == other.end;
}