print method
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;
}