toHexString static method

String toHexString(
  1. List<int> bytes
)

Convert a list of bytes to a hex string with each byte seperated by a space

Implementation

static String toHexString(List<int> bytes) {
  var buf = StringBuffer();

  for (var b in bytes) {
    buf.write(b.toRadixString(16));
    buf.write(' ');
  }
  return buf.toString();
}