copyWith method
Creates a copy of this style with the given fields replaced.
Implementation
PdfFormStyle copyWith({
double? borderRadius,
Color? borderColor,
Color? activeBorderColor,
Color? fillColor,
Color? activeFillColor,
Color? readOnlyFillColor,
TextStyle? textStyle,
TextStyle? readOnlyTextStyle,
Color? cursorColor,
Color? selectionColor,
Color? checkColor,
Color? checkedFillColor,
}) {
return PdfFormStyle(
borderRadius: borderRadius ?? this.borderRadius,
borderColor: borderColor ?? this.borderColor,
activeBorderColor: activeBorderColor ?? this.activeBorderColor,
fillColor: fillColor ?? this.fillColor,
activeFillColor: activeFillColor ?? this.activeFillColor,
readOnlyFillColor: readOnlyFillColor ?? this.readOnlyFillColor,
textStyle: textStyle ?? this.textStyle,
readOnlyTextStyle: readOnlyTextStyle ?? this.readOnlyTextStyle,
cursorColor: cursorColor ?? this.cursorColor,
selectionColor: selectionColor ?? this.selectionColor,
checkColor: checkColor ?? this.checkColor,
checkedFillColor: checkedFillColor ?? this.checkedFillColor,
);
}