toHex8 function

String toHex8(
  1. int value
)

Format a byte as a hex string.

Implementation

String toHex8(int value) => (value & 0xFF).toRadixString(16).padLeft(2, '0');