printFile method

Future<void> printFile(
  1. Uint8List bytes
)

Implementation

Future<void> printFile(Uint8List bytes) async {
  try {
    await Printing.layoutPdf(onLayout: (PdfPageFormat format) async => bytes);
  } catch(err) {
    throw 'printFile: ${err.toString()}';
  }
}