printDocument method
Implementation
@override
Future<void> printDocument(Uint8List pdfBytes) async {
try {
await _channel.invokeMethod('printDocument', {'pdfBytes': pdfBytes});
} on PlatformException catch (e) {
throw 'Failed to print document: ${e.message}';
}
}