hexlify function

String hexlify(
  1. List<int> intArray
)

Converts the list of integer values intArray to a hexadecimal string.

  • intArray: The list of integer values to convert.

Returns a hexadecimal string representation of the input list.

Implementation

String hexlify(List<int> intArray) {
  var ss = <String>[];
  for (int value in intArray) {
    ss.add(value.toRadixString(16).padLeft(2, '0'));
  }
  return "0x${ss.join('')}";
}