equivalent method

bool equivalent(
  1. Object other
)

Implementation

bool equivalent(Object other) {
  if (identical(this, other)) {
    return true;
  }

  return other is ValidatedRatio &&
      other.numerator / other.denominator == numerator / denominator;
}