makeText method
Stream the text operations required to draw the barcode texts. This is automatically called by make
Implementation
@override
Iterable<BarcodeElement> makeText(
String data,
double width,
double height,
double fontHeight,
double textPadding,
double lineWidth,
) {
if (printStartStop && !explicitStartStop) {
data = String.fromCharCode(start.index + 0x41) +
data +
String.fromCharCode(stop.index + 0x41);
} else if (!printStartStop && explicitStartStop) {
data = data.substring(1, data.length - 1);
}
return super.makeText(
data,
width,
height,
fontHeight,
textPadding,
lineWidth,
);
}