bytesToHexadecimalString static method

String bytesToHexadecimalString(
  1. List<int> bytes
)

Implementation

static String bytesToHexadecimalString(List<int> bytes) {
  StringBuffer imageHexString = StringBuffer();
  for (int aByte in bytes) {
    String hexString = (aByte & 0xFF).toRadixString(16).padLeft(2, '0');
    imageHexString.write(hexString);
  }
  return imageHexString.toString();
}