toHex method

String toHex()

Convert to Hex String with prefix.

Example:

HexData.fromBytes([0,1,2,3,4]).toHex(); // "0x0001020304"

Implementation

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