copyWith method

PdfRewriteOptions copyWith({
  1. bool? keepDocumentInfo,
  2. bool? keepXmpMetadata,
  3. bool? keepAttachments,
  4. bool? keepLayers,
  5. bool? keepBookmarks,
  6. bool? keepPageLabels,
  7. bool? keepAnnotations,
  8. bool? keepFormFields,
  9. bool? keepStructureTree,
  10. bool? deduplicateResources,
  11. bool? rejectSignedSources,
  12. bool? keepInvalidSignatures,
  13. bool? removeSignatureAppearance,
})

Copy with the given keys replaced.

Implementation

PdfRewriteOptions copyWith({
  bool? keepDocumentInfo,
  bool? keepXmpMetadata,
  bool? keepAttachments,
  bool? keepLayers,
  bool? keepBookmarks,
  bool? keepPageLabels,
  bool? keepAnnotations,
  bool? keepFormFields,
  bool? keepStructureTree,
  bool? deduplicateResources,
  bool? rejectSignedSources,
  bool? keepInvalidSignatures,
  bool? removeSignatureAppearance,
}) {
  return PdfRewriteOptions(
    keepDocumentInfo: keepDocumentInfo ?? this.keepDocumentInfo,
    keepXmpMetadata: keepXmpMetadata ?? this.keepXmpMetadata,
    keepAttachments: keepAttachments ?? this.keepAttachments,
    keepLayers: keepLayers ?? this.keepLayers,
    keepBookmarks: keepBookmarks ?? this.keepBookmarks,
    keepPageLabels: keepPageLabels ?? this.keepPageLabels,
    keepAnnotations: keepAnnotations ?? this.keepAnnotations,
    keepFormFields: keepFormFields ?? this.keepFormFields,
    keepStructureTree: keepStructureTree ?? this.keepStructureTree,
    deduplicateResources: deduplicateResources ?? this.deduplicateResources,
    rejectSignedSources: rejectSignedSources ?? this.rejectSignedSources,
    keepInvalidSignatures:
        keepInvalidSignatures ?? this.keepInvalidSignatures,
    removeSignatureAppearance:
        removeSignatureAppearance ?? this.removeSignatureAppearance,
  );
}