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,
) {
data = checkLength(data, maxLength);
data =
'${data.substring(0, 1)} ${data.substring(1, 3)} ${data.substring(3, 5)} ${data.substring(5, 10)} ${data.substring(10, 15)} ${data.substring(15, 16)}';
return super.makeText(
data,
width,
height,
fontHeight,
textPadding,
lineWidth,
);
}