copyWith method
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,
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,
);
}