getInfo method

  1. @override
Future<PrintJobInfo?> getInfo()

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:

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);
}