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,
) sync* {
final text = '*$data*';
for (var i = 0; i < text.length; i++) {
yield BarcodeText(
left: lineWidth * BarcodeMaps.code39Len * i,
top: height - fontHeight,
width: lineWidth * BarcodeMaps.code39Len,
height: fontHeight,
text: text[i],
align: BarcodeTextAlign.center,
);
}
}