toHex method

String toHex({
  1. bool withSpace = false,
})

Uint8List转16进制字符串

Implementation

String toHex({bool withSpace = false}) {
  return map((i) => formatInteger(i, 2, radix: 16))
      .join(withSpace ? ' ' : '');
}