operator > method Null safety

bool operator >(
  1. PhoneNumber other
)

Returns true if this phone number is numerically greater than other

Implementation

bool operator >(PhoneNumber other) {
  var self = BigInt.parse(international);
  var _other = BigInt.parse(other.international);

  return (self - _other).toInt() > 0;
}