Format a byte as a hex string.
String toHex8(int value) => (value & 0xFF).toRadixString(16).padLeft(2, '0');