barcode method

CustomPrintJob barcode(
  1. BarcodeType type,
  2. String data, {
  3. PosAlign align = PosAlign.center,
  4. int height = 100,
  5. int width = 3,
  6. BarcodeHri hri = BarcodeHri.below,
})

1D-Barcode (GS k, Form 2). type waehlt die Symbologie, data den Inhalt; height/width/hri steuern Hoehe, Modulbreite und Klartext.

Implementation

CustomPrintJob barcode(
  BarcodeType type,
  String data, {
  PosAlign align = PosAlign.center,
  int height = 100,
  int width = 3,
  BarcodeHri hri = BarcodeHri.below,
}) {
  _ops.add((gen) => gen.barcode(
        type,
        data,
        align: align,
        height: height,
        width: width,
        hri: hri,
      ));
  return this;
}