printJob method
Print job
args is a map containing:
- 'pages': List
- 'settings': Map<String, dynamic> (orientation, copies, duplex, paperSize, scale, printerName)
Implementation
@override
Future<bool> printJob(Map<String, dynamic> args) async {
try {
final result = await methodChannel.invokeMethod<bool>('printJob', args);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error calling printJob: $e');
return false;
}
}