isOther method

bool isOther(
  1. Amount other
)

Implementation

bool isOther(Amount other) {
  return value == other.value && decimals == other.decimals;
}