operator >= method

bool operator >=(
  1. Money other
)

Compares amounts of two Money instances

Throws exception if currencies do not equal (see Currency.==)

Implementation

bool operator >=(Money other) {
  if (currency != other.currency) _throwCurrencyError();

  return amount >= other.amount;
}