format method
Implementation
@override
String format(Record record, {int? fullDataEndAddress}) {
if (record.length != recordLength) {
throw Exception('Record should be of length $recordLength');
}
final sb = StringBuffer();
sb.write('0x' + record.startAddress.hex32);
sb.write('\t');
for (int? datum in record.data) {
if (datum != null) {
sb.write(datum.hex8);
} else {
sb.write('--');
}
sb.write(' ');
}
return sb.toString();
}