toHex method

String toHex(
  1. ByteBuffer buffer
)

Implementation

String toHex(ByteBuffer buffer) {
  Uint8List uint8List = Uint8List.view(buffer);
  String hexString = uint8List.map((byte) => byte.toRadixString(16).padLeft(2, '0')).join('');
  return hexString;
}