toHex static method

String toHex(
  1. Iterable<int> bytes
)

Implementation

static String toHex(Iterable<int> bytes) {
  StringBuffer hexStr = StringBuffer();
  for (var byte in bytes) {
    hexStr.write(byte.toRadixString(16).padLeft(2, "0").toUpperCase());
    hexStr.write(" ");
  }
  return hexStr.toString();
}