copyWith method

CPDFWatermark copyWith({
  1. int? index,
  2. CPDFWatermarkType? type,
  3. String? textContent,
  4. String? imagePath,
  5. bool? isImageExported,
  6. Color? textColor,
  7. int? fontSize,
  8. double? scale,
  9. double? rotation,
  10. double? opacity,
  11. CPDFWatermarkVerticalAlignment? verticalAlignment,
  12. CPDFWatermarkHorizontalAlignment? horizontalAlignment,
  13. double? verticalOffset,
  14. double? horizontalOffset,
  15. List<int>? pages,
  16. bool? isFront,
  17. bool? isTilePage,
  18. double? horizontalSpacing,
  19. double? verticalSpacing,
})

Implementation

CPDFWatermark copyWith({
  int? index,
  CPDFWatermarkType? type,
  String? textContent,
  String? imagePath,
  bool? isImageExported,
  Color? textColor,
  int? fontSize,
  double? scale,
  double? rotation,
  double? opacity,
  CPDFWatermarkVerticalAlignment? verticalAlignment,
  CPDFWatermarkHorizontalAlignment? horizontalAlignment,
  double? verticalOffset,
  double? horizontalOffset,
  List<int>? pages,
  bool? isFront,
  bool? isTilePage,
  double? horizontalSpacing,
  double? verticalSpacing,
}) {
  return CPDFWatermark(
    index: index ?? this.index,
    type: type ?? this.type,
    textContent: textContent ?? this.textContent,
    imagePath: imagePath ?? this.imagePath,
    isImageExported: isImageExported ?? this.isImageExported,
    textColor: textColor ?? this.textColor,
    fontSize: fontSize ?? this.fontSize,
    scale: scale ?? this.scale,
    rotation: rotation ?? this.rotation,
    opacity: opacity ?? this.opacity,
    verticalAlignment: verticalAlignment ?? this.verticalAlignment,
    horizontalAlignment: horizontalAlignment ?? this.horizontalAlignment,
    verticalOffset: verticalOffset ?? this.verticalOffset,
    horizontalOffset: horizontalOffset ?? this.horizontalOffset,
    pages: pages ?? this.pages,
    isFront: isFront ?? this.isFront,
    isTilePage: isTilePage ?? this.isTilePage,
    horizontalSpacing: horizontalSpacing ?? this.horizontalSpacing,
    verticalSpacing: verticalSpacing ?? this.verticalSpacing,
  );
}