operator == method
Ranges are equal if they have same start and end dates and inclusions.
// same values and inclusions
IntRange.parse('[2,10)') == IntRange(2,10);
// same values BUT 10 in included in parsed range, but excluded in other
IntRange.parse('[2,10]') != IntRange(2,10);
// same values and inclusions
IntRange.parse('[2,10]') == IntRange(2,10, endInclusive: true);
Implementation
@override
bool operator ==(Object that) => that is Range<TYPE> && this.compareTo(that) == 0;