barcode static method

dynamic barcode(
  1. String code,
  2. BarCodeType type, {
  3. int height = 162,
  4. int width = 2,
  5. 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,
  });
}