getInfo method
Gets the PrintJobInfo
that describes this job.
NOTE: The returned info object is a snapshot of the current print job state. Every call to this method returns a fresh info object that reflects the current print job state.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - PrintJob.getInfo)
- iOS
- MacOS
Implementation
@override
Future<PrintJobInfo?> getInfo() async {
Map<String, dynamic> args = <String, dynamic>{};
Map<String, dynamic>? infoMap =
(await channel?.invokeMethod('getInfo', args))?.cast<String, dynamic>();
return PrintJobInfo.fromMap(infoMap);
}