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]) {
addCommand("B 128 $lineWidth 1 $height ${offset.x} ${offset.y} $context");
}