operator + method

CurrencyAmount operator +(
  1. covariant CurrencyAmount other
)

Implementation

CurrencyAmount operator +(covariant CurrencyAmount other) {
  final added =  super.add(other);
  return CurrencyAmount.fromFractionalAmount(
      currency, added.numerator, added.denominator);
}