printBytes method

Future<void> printBytes(
  1. Uint8List bytes
)

Implementation

Future<void> printBytes(Uint8List bytes) async {
  await Printing.layoutPdf(onLayout: (PdfPageFormat format) async => bytes)
  .catchError((onError) => throw onError);
}