operator unary- method

CurrencyAmount operator unary-()

Negates the amount.

Implementation

CurrencyAmount operator -() {
  return CurrencyAmount.fromDecimal(-amount, currency: currency);
}