bool equivalent(Object other) { if (identical(this, other)) { return true; } return other is ValidatedRatio && other.numerator / other.denominator == numerator / denominator; }