drawBarCode method
dynamic
drawBarCode(
- String context,
- PrinterOffset offset,
- int height, [
- int lineWidth = 1,
override
打印二维码
context
内容
offset
偏移位置
height
高度
lineWidth
窄条的单位宽度,默认1
Implementation
@override
drawBarCode(String context, PrinterOffset offset, int height, [int lineWidth = 1]) {
lineWidth++;
addCommand(
"BARCODE ${offset.x!.toInt()},${offset.y!.toInt()},128,$height,0,0,$lineWidth,${lineWidth * 2},$context");
}