operator - method

MixedFraction operator -(
  1. MixedFraction other
)

The difference between two mixed fractions.

Implementation

MixedFraction operator -(MixedFraction other) {
  final result = other.toFraction() - toFraction();

  return result.toMixedFraction();
}