toHex method

String toHex()

Encode to Hex String with prefix.

Example:

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

Implementation

String toHex() => '0x${toNoPrefixHex()}';