copyWith method

CPDFUiStyleConfig copyWith({
  1. String? bookmarkIcon,
  2. CPDFUiStyleIcons? icons,
  3. Color? selectTextColor,
  4. CPDFUiDisplayPageRectStyle? displayPageRect,
  5. CPDFUiScreenshotStyle? screenshot,
  6. CPDFUiFormPreviewStyle? formPreview,
  7. CPDFUiBorderStyle? defaultBorderStyle,
  8. CPDFUiBorderStyle? focusBorderStyle,
  9. CPDFUiBorderStyle? cropImageStyle,
})

Implementation

CPDFUiStyleConfig copyWith({
  String? bookmarkIcon,
  CPDFUiStyleIcons? icons,
  Color? selectTextColor,
  CPDFUiDisplayPageRectStyle? displayPageRect,
  CPDFUiScreenshotStyle? screenshot,
  CPDFUiFormPreviewStyle? formPreview,
  CPDFUiBorderStyle? defaultBorderStyle,
  CPDFUiBorderStyle? focusBorderStyle,
  CPDFUiBorderStyle? cropImageStyle,
}) {
  return CPDFUiStyleConfig(
    bookmarkIcon: bookmarkIcon ?? this.bookmarkIcon,
    icons: icons ?? this.icons,
    selectTextColor: selectTextColor ?? this.selectTextColor,
    displayPageRect: displayPageRect ?? this.displayPageRect,
    screenshot: screenshot ?? this.screenshot,
    formPreview: formPreview ?? this.formPreview,
    defaultBorderStyle: defaultBorderStyle ?? this.defaultBorderStyle,
    focusBorderStyle: focusBorderStyle ?? this.focusBorderStyle,
    cropImageStyle: cropImageStyle ?? this.cropImageStyle,
  );
}