copyWith method
SfPdfViewerThemeData
copyWith({
- Brightness? brightness,
- Color? backgroundColor,
- Color? progressBarColor,
- PdfScrollStatusStyle? scrollStatusStyle,
- PdfScrollHeadStyle? scrollHeadStyle,
- PdfBookmarkViewStyle? bookmarkViewStyle,
- PdfPaginationDialogStyle? paginationDialogStyle,
- PdfHyperlinkDialogStyle? hyperlinkDialogStyle,
- 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,
PdfHyperlinkDialogStyle? hyperlinkDialogStyle,
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,
hyperlinkDialogStyle: hyperlinkDialogStyle ?? this.hyperlinkDialogStyle,
passwordDialogStyle: passwordDialogStyle ?? this.passwordDialogStyle,
);
}