copyWith method
ReaderTheme
copyWith({
- Color? backgroundColor,
- String? backgroundImage,
- EdgeInsets? headerPadding,
- TextStyle? headerStyle,
- EdgeInsets? pagePadding,
- TextStyle? pageStyle,
- TextDirection? textDirection,
Implementation
ReaderTheme copyWith({
Color? backgroundColor,
String? backgroundImage,
EdgeInsets? footerPadding,
TextStyle? footerStyle,
EdgeInsets? headerPadding,
TextStyle? headerStyle,
EdgeInsets? pagePadding,
TextStyle? pageStyle,
TextDirection? textDirection,
}) {
return ReaderTheme()
..backgroundColor = backgroundColor ?? this.backgroundColor
..backgroundImage = backgroundImage ?? this.backgroundImage
..footerPadding = footerPadding ?? this.footerPadding
..footerStyle = footerStyle ?? this.footerStyle
..headerPadding = headerPadding ?? this.headerPadding
..headerStyle = headerStyle ?? this.headerStyle
..pagePadding = pagePadding ?? this.pagePadding
..pageStyle = pageStyle ?? this.pageStyle
..textDirection = textDirection ?? this.textDirection;
}