copyWith method

AnsiRendererOptions copyWith({
  1. int? width,
  2. bool? hasDarkBackground,
  3. Style? textStyle,
  4. Style? h1Style,
  5. Style? h2Style,
  6. Style? h3Style,
  7. Style? h4Style,
  8. Style? h5Style,
  9. Style? h6Style,
  10. Style? emphasisStyle,
  11. Style? strongStyle,
  12. Style? codeStyle,
  13. Style? codeBlockStyle,
  14. Style? linkStyle,
  15. Style? blockquoteStyle,
  16. Color? blockquoteBorderColor,
  17. Style? strikethroughStyle,
  18. String? bulletChar,
  19. bool? hyperlinks,
  20. String? hrChar,
  21. int? hrWidth,
  22. String? checkboxChecked,
  23. String? checkboxUnchecked,
  24. int? listIndent,
  25. bool? codeBlockBorder,
  26. Border? tableBorder,
  27. Style? tableHeaderStyle,
  28. Style? tableCellStyle,
  29. Style? tableBorderStyle,
  30. bool? syntaxHighlighting,
  31. ChromaTheme? syntaxTheme,
  32. Border? codeBlockBorderStyle,
})

Creates a copy with the given fields replaced.

Implementation

AnsiRendererOptions copyWith({
  int? width,
  bool? hasDarkBackground,
  Style? textStyle,
  Style? h1Style,
  Style? h2Style,
  Style? h3Style,
  Style? h4Style,
  Style? h5Style,
  Style? h6Style,
  Style? emphasisStyle,
  Style? strongStyle,
  Style? codeStyle,
  Style? codeBlockStyle,
  Style? linkStyle,
  Style? blockquoteStyle,
  Color? blockquoteBorderColor,
  Style? strikethroughStyle,
  String? bulletChar,
  bool? hyperlinks,
  String? hrChar,
  int? hrWidth,
  String? checkboxChecked,
  String? checkboxUnchecked,
  int? listIndent,
  bool? codeBlockBorder,
  style_border.Border? tableBorder,
  Style? tableHeaderStyle,
  Style? tableCellStyle,
  Style? tableBorderStyle,
  bool? syntaxHighlighting,
  ChromaTheme? syntaxTheme,
  style_border.Border? codeBlockBorderStyle,
}) {
  return AnsiRendererOptions(
    width: width ?? this.width,
    hasDarkBackground: hasDarkBackground ?? this.hasDarkBackground,
    textStyle: textStyle ?? this.textStyle,
    h1Style: h1Style ?? this.h1Style,
    h2Style: h2Style ?? this.h2Style,
    h3Style: h3Style ?? this.h3Style,
    h4Style: h4Style ?? this.h4Style,
    h5Style: h5Style ?? this.h5Style,
    h6Style: h6Style ?? this.h6Style,
    emphasisStyle: emphasisStyle ?? this.emphasisStyle,
    strongStyle: strongStyle ?? this.strongStyle,
    codeStyle: codeStyle ?? this.codeStyle,
    codeBlockStyle: codeBlockStyle ?? this.codeBlockStyle,
    linkStyle: linkStyle ?? this.linkStyle,
    blockquoteStyle: blockquoteStyle ?? this.blockquoteStyle,
    blockquoteBorderColor:
        blockquoteBorderColor ?? this.blockquoteBorderColor,
    strikethroughStyle: strikethroughStyle ?? this.strikethroughStyle,
    bulletChar: bulletChar ?? this.bulletChar,
    hyperlinks: hyperlinks ?? this.hyperlinks,
    hrChar: hrChar ?? this.hrChar,
    hrWidth: hrWidth ?? this.hrWidth,
    checkboxChecked: checkboxChecked ?? this.checkboxChecked,
    checkboxUnchecked: checkboxUnchecked ?? this.checkboxUnchecked,
    listIndent: listIndent ?? this.listIndent,
    codeBlockBorder: codeBlockBorder ?? this.codeBlockBorder,
    tableBorder: tableBorder ?? this.tableBorder,
    tableHeaderStyle: tableHeaderStyle ?? this.tableHeaderStyle,
    tableCellStyle: tableCellStyle ?? this.tableCellStyle,
    tableBorderStyle: tableBorderStyle ?? this.tableBorderStyle,
    syntaxHighlighting: syntaxHighlighting ?? this.syntaxHighlighting,
    syntaxTheme: syntaxTheme ?? this.syntaxTheme,
    codeBlockBorderStyle: codeBlockBorderStyle ?? this.codeBlockBorderStyle,
  );
}