operator == method
Measures are equal when they are compatible and compare numerically equal.
Implementation
@override
/// Measures are equal when they are compatible and compare numerically equal.
bool operator ==(Object other) =>
other is Measure<D> && isCompatible(other) && compareTo(other) == 0;