printQrCode method

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

printQrCode will print QR code and you can set width and height. default width is 300 default height is 300 success result is 0.

Implementation

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