print method

  1. @override
Future<Uint8List> print({
  1. required Uint8List doc,
})
override

Prints a document using the Rongta printer.

The doc parameter specifies the document as a Uint8List containing the image data representing the document.

Returns a Future that completes with a Uint8List containing the image data representing the printed document.

Implementation

@override
Future<Uint8List> print({
  required Uint8List doc,
}) async {
  // Invoke the platform method 'print' with the provided document data.
  await methodChannel.invokeMethod(
    'print',
    {
      'doc': doc,
    },
  );

  return doc;
}