copyWith method

PdfFormStyle copyWith({
  1. double? borderRadius,
  2. Color? borderColor,
  3. Color? activeBorderColor,
  4. Color? fillColor,
  5. Color? activeFillColor,
  6. Color? readOnlyFillColor,
  7. TextStyle? textStyle,
  8. TextStyle? readOnlyTextStyle,
  9. Color? cursorColor,
  10. Color? selectionColor,
  11. Color? checkColor,
  12. Color? checkedFillColor,
})

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