operator * method

MixedFraction operator *(
  1. MixedFraction other
)

The product of two mixed fractions.

Implementation

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

  return result.toMixedFraction();
}