copyWith method

GptMarkdownStyleSheet copyWith({
  1. BlockQuoteStyle? blockQuote,
  2. HeadingStyle? heading,
  3. LinkStyle? link,
  4. InlineCodeStyle? inlineCode,
  5. ListStyle? list,
  6. CheckboxStyle? checkbox,
  7. CodeBlockStyle? codeBlock,
  8. TableStyle? table,
  9. ImageStyle? image,
  10. HrStyle? hr,
  11. SourceTagStyle? sourceTag,
  12. LatexStyle? latex,
  13. AlertStyle? alert,
  14. double? blockSpacing,
})

A copy with the given fields replaced.

Implementation

GptMarkdownStyleSheet copyWith({
  BlockQuoteStyle? blockQuote,
  HeadingStyle? heading,
  LinkStyle? link,
  InlineCodeStyle? inlineCode,
  ListStyle? list,
  CheckboxStyle? checkbox,
  CodeBlockStyle? codeBlock,
  TableStyle? table,
  ImageStyle? image,
  HrStyle? hr,
  SourceTagStyle? sourceTag,
  LatexStyle? latex,
  AlertStyle? alert,
  double? blockSpacing,
}) {
  return GptMarkdownStyleSheet(
    blockQuote: blockQuote ?? this.blockQuote,
    heading: heading ?? this.heading,
    link: link ?? this.link,
    inlineCode: inlineCode ?? this.inlineCode,
    list: list ?? this.list,
    checkbox: checkbox ?? this.checkbox,
    codeBlock: codeBlock ?? this.codeBlock,
    table: table ?? this.table,
    image: image ?? this.image,
    hr: hr ?? this.hr,
    sourceTag: sourceTag ?? this.sourceTag,
    latex: latex ?? this.latex,
    alert: alert ?? this.alert,
    blockSpacing: blockSpacing ?? this.blockSpacing,
  );
}