operator - method

CurrencyAmount operator -(
  1. covariant CurrencyAmount other
)

Implementation

CurrencyAmount operator -(covariant CurrencyAmount other) {
  final subtracted = super.subtract(other);
  return CurrencyAmount.fromFractionalAmount(
      currency, subtracted.numerator, subtracted.denominator);
}