operator > method

bool operator >(
  1. Money other
)

Greater than operator.

Implementation

bool operator >(Money other) {
  if (other._currency != _currency ||
      _amount == null ||
      other._amount == null) {
    return false;
  }
  return _amount! > other._amount!;
}