operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

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;