autoPrint method

Future<bool> autoPrint()

Implementation

Future<bool> autoPrint() async {
  Printing.layoutPdf(
    format: PdfPageFormat.roll80,
    // format: PdfPageFormat.a4,
    onLayout: (PdfPageFormat format) async {
      return doc.save();
    },
    // this will use a default printer if it is set.
    usePrinterSettings: true,
  );
  return Future.value(false);
}