toHexString method

String toHexString({
  1. bool uppercase = false,
})

Returns the hexadecimal representation of the bytes.

Implementation

String toHexString({bool uppercase = false}) {
  final hex = _converter.bytes.toRadixString(16);
  return uppercase ? hex.toUpperCase() : hex;
}