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