toHex method
Implementation
String toHex() {
String output = '';
for (int byte in bytes) {
String hex = byte.toRadixString(16).toUpperCase();
hex = "$_prfix$hex";
if (output.isNotEmpty) {
output += _slice;
}
output += hex;
}
return output;
}