toShortHex method

String toShortHex()

Convert to Hex String Trim extra zeroes in the beginning of a string with prefix.

Example:

ByteArray([0,0,0,255,2,3,10]).toShortHex(); // 0xff02030a

Implementation

String toShortHex() => _data.toShortHex();