operator > method

bool operator >(
  1. PhoneNumber other
)

Returns true if this phone number is numerically greater than other

Implementation

bool operator >(PhoneNumber other) {
  var selfAsNum = BigInt.parse(international);
  var otherAsNum = BigInt.parse(other.international);

  return (selfAsNum - otherAsNum).toInt() > 0;
}