printBarcode method

Future<int?> printBarcode(
  1. String text, {
  2. int? width,
  3. int? height,
})

printBarcode will print barcode and you can set width and height. default width is 300 default height is 160 success result is 0.

Implementation

Future<int?> printBarcode(String text, {int? width, int? height}) {
  return NyxPrinterPlatform.instance
      .printBarcode(text, width ?? 300, height ?? 160);
}