copyWith method

SfPdfViewerThemeData copyWith({
  1. Brightness? brightness,
  2. Color? backgroundColor,
  3. Color? progressBarColor,
  4. PdfScrollStatusStyle? scrollStatusStyle,
  5. PdfScrollHeadStyle? scrollHeadStyle,
  6. PdfBookmarkViewStyle? bookmarkViewStyle,
  7. PdfPaginationDialogStyle? paginationDialogStyle,
  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(
    {Brightness? brightness,
    Color? backgroundColor,
    Color? progressBarColor,
    PdfScrollStatusStyle? scrollStatusStyle,
    PdfScrollHeadStyle? scrollHeadStyle,
    PdfBookmarkViewStyle? bookmarkViewStyle,
    PdfPaginationDialogStyle? paginationDialogStyle,
    PdfPasswordDialogStyle? passwordDialogStyle}) {
  return SfPdfViewerThemeData.raw(
    brightness: brightness ?? this.brightness,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    progressBarColor: progressBarColor ?? this.progressBarColor,
    scrollStatusStyle: scrollStatusStyle ?? this.scrollStatusStyle,
    scrollHeadStyle: scrollHeadStyle ?? this.scrollHeadStyle,
    bookmarkViewStyle: bookmarkViewStyle ?? this.bookmarkViewStyle,
    paginationDialogStyle:
        paginationDialogStyle ?? this.paginationDialogStyle,
    passwordDialogStyle: passwordDialogStyle ?? this.passwordDialogStyle,
  );
}