toHex method

String toHex({
  1. Endian endian = Endian.big,
})

Converts this bytes to HEX.

Implementation

String toHex({Endian endian = Endian.big}) {
  return endian == Endian.big ? toHexBigEndian() : toHexLittleEndian();
}