copyWith method

ReaderConfig copyWith({
  1. Axis? axis,
  2. FontWeight? fontWeight,
  3. FontStyle? fontStyle,
  4. TextAlign? textAlign,
  5. String? fontFamily,
  6. double? fontSize,
  7. double? lineHeight,
  8. EdgeInsets? padding,
  9. Color? backgroundColor,
  10. 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,
  );
}