bufferToHex function

String bufferToHex(
  1. Uint8List buf
)

Converts a Uint8List into a hex String.

Implementation

String bufferToHex(Uint8List buf) {
  return '0x' + hex.encode(buf);
}