operator == method

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

Two quantity ranges are considered equal only if their endpoints are exactly equal.

Implementation

@override
bool operator ==(Object obj) {
  if (obj is! QuantityRange) return false;
  return (q1 == obj.q1) && (q2 == obj.q2);
}