printQR method

Future<void> printQR(
  1. String data, {
  2. int size = 120,
  3. int feedCount = 0,
  4. bool useCut = false,
})

This method only for print QR, only pass value on parameter data define size to size of QR, default value is 120 feedCount to create more space after printing process done useCut to cut printing process

Implementation

Future<void> printQR(
  String data, {
  int size = 120,
  int feedCount = 0,
  bool useCut = false,
}) async {
  final List<int> byteBuffer = await _getQRImage(data, size.toDouble());
  printReceiptImage(
    byteBuffer,
    width: size,
    feedCount: feedCount,
    useCut: useCut,
  );
}