copyWith method

OcrWatermark copyWith({
  1. Map<String, String>? lines,
  2. Color? textColor,
  3. Color? backgroundColor,
  4. double? fontSize,
  5. EdgeInsets? padding,
})

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