bytesToHex static method

String bytesToHex(
  1. Uint8List bytes
)

Implementation

static String bytesToHex(Uint8List bytes) {
  List<String> hexChars = List.filled(bytes.length * 2, '');
  for (int j = 0; j < bytes.length; j++) {
    int v = bytes[j] & 0xFF;
    hexChars[j * 2] = _hexArray[v >> 4];
    hexChars[j * 2 + 1] = _hexArray[v & 0x0F];
  }
  return hexChars.join();
}