byteToHex function

String byteToHex(
  1. int byte
)

Implementation

String byteToHex(int byte) {
  return byte.toRadixString(16).padLeft(2, '0');
}