negate method
Changes the sign of this mixed fraction and returns the results in a new MixedFraction instance.
Implementation
MixedFraction negate() {
return MixedFraction(
whole: whole * -1,
numerator: numerator,
denominator: denominator,
);
}