toHex method

String toHex()

Convert to Hex String with prefix.

Example:

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

Implementation

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