PrintJobInfo constructor

PrintJobInfo({
  1. required String id,
  2. required String title,
  3. required PrintJobSource source,
  4. String? sourceId,
  5. required PrintJobStatus status,
  6. required double creationTime,
  7. required double completionTime,
  8. required Printer printer,
  9. required PrintSettings settings,
  10. required int numberOfPages,
  11. required PrinterStatus printerStatus,
})

Implementation

PrintJobInfo({
  /// The ID of the job.
  required String id,

  /// The title of the document which was printed.
  required String title,

  /// Source showing who initiated the print job.
  required PrintJobSource source,

  /// ID of source. Null if source is PRINT_PREVIEW or ANDROID_APP.
  String? sourceId,

  /// The final status of the job.
  required PrintJobStatus status,

  /// The job creation time (in milliseconds past the Unix epoch).
  required double creationTime,

  /// The job completion time (in milliseconds past the Unix epoch).
  required double completionTime,

  /// The info about the printer which printed the document.
  required Printer printer,

  /// The settings of the print job.
  required PrintSettings settings,

  /// The number of pages in the document.
  required int numberOfPages,

  /// The status of the printer.
  required PrinterStatus printerStatus,
}) : _wrapped = $js.PrintJobInfo(
        id: id,
        title: title,
        source: source.toJS,
        sourceId: sourceId,
        status: status.toJS,
        creationTime: creationTime,
        completionTime: completionTime,
        printer: printer.toJS,
        settings: settings.toJS,
        numberOfPages: numberOfPages,
        printer_status: printerStatus.toJS,
      );