toHexString method

  1. @override
String toHexString()
override

Returns a string representing the value of this integer in hexadecimal notation.

Example: Int64(0xf01d).toHexString() returns 'F01D'.

The string may interprets the number as unsigned, and has no leading minus, even if the value isNegative.

Example: Int64(-1).toHexString() returns 'FFFFFFFFFFFFFFFF'.

Implementation

@override
String toHexString() => _i.toRadixString(16);