copyWith method

SfPdfViewerThemeData copyWith({
  1. Color? backgroundColor,
  2. Color? progressBarColor,
  3. PdfScrollStatusStyle? scrollStatusStyle,
  4. PdfScrollHeadStyle? scrollHeadStyle,
  5. PdfBookmarkViewStyle? bookmarkViewStyle,
  6. PdfPaginationDialogStyle? paginationDialogStyle,
  7. PdfHyperlinkDialogStyle? hyperlinkDialogStyle,
  8. PdfPasswordDialogStyle? passwordDialogStyle,
})

Creates a copy of this SfPdfViewer theme data object with the matching fields replaced with the non-null parameter values.

Implementation

SfPdfViewerThemeData copyWith(
    {Color? backgroundColor,
    Color? progressBarColor,
    PdfScrollStatusStyle? scrollStatusStyle,
    PdfScrollHeadStyle? scrollHeadStyle,
    PdfBookmarkViewStyle? bookmarkViewStyle,
    PdfPaginationDialogStyle? paginationDialogStyle,
    PdfHyperlinkDialogStyle? hyperlinkDialogStyle,
    PdfPasswordDialogStyle? passwordDialogStyle}) {
  return SfPdfViewerThemeData.raw(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    progressBarColor: progressBarColor ?? this.progressBarColor,
    scrollStatusStyle: scrollStatusStyle ?? this.scrollStatusStyle,
    scrollHeadStyle: scrollHeadStyle ?? this.scrollHeadStyle,
    bookmarkViewStyle: bookmarkViewStyle ?? this.bookmarkViewStyle,
    paginationDialogStyle:
        paginationDialogStyle ?? this.paginationDialogStyle,
    hyperlinkDialogStyle: hyperlinkDialogStyle ?? this.hyperlinkDialogStyle,
    passwordDialogStyle: passwordDialogStyle ?? this.passwordDialogStyle,
  );
}