barcode static method
dynamic
barcode(
- String code,
- BarCodeType type, {
- int height = 162,
- int width = 2,
- BarCodeTextType textType = BarCodeTextType.none,
打印一维码
Implementation
static barcode(
String code,
BarCodeType type, {
int height = 162,
int width = 2,
BarCodeTextType textType = BarCodeTextType.none,
}) async {
await _channel.invokeMethod('printBarCode', {
'code': code,
'height': height,
'width': width,
'symbology': type.value,
'textPosition': textType.value,
});
}