reduce method
Reduces this mixed fraction to the lowest terms and returns the results in a new MixedFraction instance.
Implementation
MixedFraction reduce() {
final fractionalPart = Fraction(numerator, denominator).reduce();
return MixedFraction(
whole: whole,
numerator: fractionalPart.numerator,
denominator: fractionalPart.denominator,
);
}