getPrintJobs method

Future<List<PrintJobInfo>> getPrintJobs()

Returns the list of the finished print jobs.

Implementation

Future<List<PrintJobInfo>> getPrintJobs() async {
  var $res = await promiseToFuture<JSArray>(
      $js.chrome.printingMetrics.getPrintJobs());
  return $res.toDart
      .cast<$js.PrintJobInfo>()
      .map((e) => PrintJobInfo.fromJS(e))
      .toList();
}