copyWith method
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,
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,
);
}