copyWith method

WatermarkStyle copyWith({
  1. double? opacity,
  2. double? rotate,
  3. Color? textColor,
  4. double? fontSize,
  5. double? rowSpacing,
  6. double? columnSpacing,
  7. FontWeight? fontWeight,
  8. bool? staggered,
})

Creates a copy of this style with the given fields replaced.

Implementation

WatermarkStyle copyWith({
  double? opacity,
  double? rotate,
  Color? textColor,
  double? fontSize,
  double? rowSpacing,
  double? columnSpacing,
  FontWeight? fontWeight,
  bool? staggered,
}) {
  return WatermarkStyle(
    opacity: opacity ?? this.opacity,
    rotate: rotate ?? this.rotate,
    textColor: textColor ?? this.textColor,
    fontSize: fontSize ?? this.fontSize,
    rowSpacing: rowSpacing ?? this.rowSpacing,
    columnSpacing: columnSpacing ?? this.columnSpacing,
    fontWeight: fontWeight ?? this.fontWeight,
    staggered: staggered ?? this.staggered,
  );
}