copyWith method
ReaderConfig
copyWith({
- Axis? axis,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- TextAlign? textAlign,
- String? fontFamily,
- double? fontSize,
- double? lineHeight,
- EdgeInsets? padding,
- Color? backgroundColor,
- Color? foregroundColor,
Implementation
ReaderConfig copyWith({
Axis? axis,
FontWeight? fontWeight,
FontStyle? fontStyle,
TextAlign? textAlign,
String? fontFamily,
double? fontSize,
double? lineHeight,
EdgeInsets? padding,
Color? backgroundColor,
Color? foregroundColor,
}) {
return ReaderConfig(
axis: axis ?? this.axis,
fontWeight: fontWeight ?? this.fontWeight,
fontStyle: fontStyle ?? this.fontStyle,
textAlign: textAlign ?? this.textAlign,
fontFamily: fontFamily ?? this.fontFamily,
fontSize: fontSize ?? this.fontSize,
lineHeight: lineHeight ?? this.lineHeight,
padding: padding ?? this.padding,
backgroundColor: backgroundColor ?? this.backgroundColor,
foregroundColor: foregroundColor ?? this.foregroundColor,
);
}