toHexString method
Returns a string representing the value of this integer in hexadecimal
notation; example: '0xd'
.
Implementation
@override
String toHexString() {
if (isZero) return '0';
Int64 x = this;
String hexStr = '';
while (!x.isZero) {
int digit = x._l & 0xf;
hexStr = '${_hexDigit(digit)}$hexStr';
x = x.shiftRightUnsigned(4);
}
return hexStr;
}