bytesToHex function

String bytesToHex(
  1. Iterable<int> bytes
)

Convert bytes to hex string

Implementation

String bytesToHex(Iterable<int> bytes) {
  return bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join();
}