encodeHex function

String encodeHex(
  1. List<int> bytes
)

Encodes buffer of list of integers bytes to hexa-decimal.

Implementation

String encodeHex(List<int> bytes) {
  try {
    return hex.encode(bytes);
  } catch (_) {
    throw HexException('$bytes');
  }
}