PrintJob constructor

PrintJob({
  1. required String printerId,
  2. required String title,
  3. required Map ticket,
  4. required String contentType,
  5. required JSObject document,
})

Implementation

PrintJob({
  /// ID of the printer which should handle the job.
  required String printerId,

  /// The print job title.
  required String title,

  /// Print ticket in
  /// <a href="https://developers.google.com/cloud-print/docs/cdd#cjt">
  /// CJT format</a>.
  /// <aside class="aside flow bg-state-info-bg color-state-info-text">
  /// <div class="flow">The CJT reference is marked as deprecated. It is
  /// deprecated for Google Cloud Print only. is not deprecated for
  /// ChromeOS printing.
  /// </div>
  /// </aside>
  required Map ticket,

  /// The document content type. Supported formats are
  /// `"application/pdf"` and `"image/pwg-raster"`.
  required String contentType,

  /// Blob containing the document data to print. Format must match
  /// |contentType|.
  required JSObject document,
}) : _wrapped = $js.PrintJob(
        printerId: printerId,
        title: title,
        ticket: ticket.jsify()!,
        contentType: contentType,
        document: document,
      );