reduce method
Reduces this rational number to the lowest terms and returns the result in a new Rational object.
Implementation
@override
MixedFraction reduce() {
final fractionalPart = Fraction(numerator, denominator).reduce();
return MixedFraction(
whole: whole,
numerator: fractionalPart.numerator,
denominator: fractionalPart.denominator,
);
}