bytesToHex method
Converts a Uint8List of bytes to a hexadecimal string.
Example:
final hex = bytesToHex(Uint8List.fromList([255, 0])); // returns 'ff00'
Implementation
String bytesToHex(Uint8List bytes) =>
bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join();