printBarcode method
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);
}