toHex function
Converts 8-bit integer sequence to 4-bit Base-16 character sequence.
Parameters:
input
is a sequence of 8-bit integers.- If
upper
is true, the uppercase standard alphabet is used. codec
is the Base16Codec to use. It is derived from the other parameters if not provided.
Implementation
String toHex(
List<int> input, {
Base16Codec? codec,
bool upper = false,
}) {
codec ??= _codecFromParameters(upper: upper);
var out = codec.encoder.convert(input);
return String.fromCharCodes(out);
}