copyWith method
Creates a copy with optional new values.
Implementation
OcrWatermark copyWith({
Map<String, String>? lines,
Color? textColor,
Color? backgroundColor,
double? fontSize,
EdgeInsets? padding,
}) {
return OcrWatermark(
lines: lines ?? this.lines,
textColor: textColor ?? this.textColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
fontSize: fontSize ?? this.fontSize,
padding: padding ?? this.padding,
);
}