toHexString static method

String toHexString(
  1. dynamic byteArray,
  2. bool withPrefix
)

Implementation

static String toHexString(byteArray, bool withPrefix) {
  return ((withPrefix ? '0x' : '') + HEX.encode(toBuffer(byteArray)));
}