convert method
Converts input
and returns the result of the conversion.
Implementation
@override
String convert(List<int> input) {
final StringBuffer buffer = StringBuffer();
for (final int part in input) {
if (part & 0xff != part) {
throw const FormatException("Non-byte integer detected");
}
buffer.write('${part < 16 ? '0' : ''}${part.toRadixString(16)}');
}
if (upperCase) {
return buffer.toString().toUpperCase();
} else {
return buffer.toString();
}
}