print method

void print (List<String> list, { String qrCodePattern: '(\\d{44}\\|.*\$)', String barcodePattern: '^\\d{1,}.\$', bool printBarcode: true })

Print a list of strings. Uses the qrCodePattern to match the qrCode. If matches the qrcode is printed. Uses the barcodePattern to match the barcode. If matches the barcode is printed.

Implementation

static void print(
  List<String> list, {
  String qrCodePattern = '(\\d{44}\\|.*\$)',
  String barcodePattern = '^\\d{1,}.\$',
  bool printBarcode = true,
}) async =>
    await _channel.invokeMethod('print', {
      'list': list,
      'qrCodePattern': qrCodePattern,
      'barcodePattern': barcodePattern,
      'printBarcode': printBarcode,
    });