copyWith method
MarkdownStyleSheet
copyWith({
- TextStyle? textStyle,
- TextStyle? h1Style,
- TextStyle? h2Style,
- TextStyle? h3Style,
- TextStyle? h4Style,
- TextStyle? h5Style,
- TextStyle? h6Style,
- TextStyle? paragraphStyle,
- TextStyle? blockquoteStyle,
- TextStyle? codeBlockStyle,
- TextStyle? inlineCodeStyle,
- TextStyle? linkStyle,
- TextStyle? boldStyle,
- TextStyle? italicStyle,
- TextStyle? strikethroughStyle,
- TextStyle? listBulletStyle,
- TextStyle? tableHeaderStyle,
- TextStyle? tableCellStyle,
- BoxDecoration? blockquoteDecoration,
- BoxDecoration? codeBlockDecoration,
- TableBorder? tableBorder,
- BoxDecoration? tableHeaderDecoration,
- BoxDecoration? tableOddRowDecoration,
- BoxDecoration? tableEvenRowDecoration,
- Color? horizontalRuleColor,
- double? horizontalRuleThickness,
- double? blockSpacing,
- double? listIndent,
- EdgeInsets? blockquotePadding,
- EdgeInsets? codeBlockPadding,
- EdgeInsets? tableCellPadding,
Creates a copy of this style sheet with the given fields replaced
Implementation
MarkdownStyleSheet copyWith({
TextStyle? textStyle,
TextStyle? h1Style,
TextStyle? h2Style,
TextStyle? h3Style,
TextStyle? h4Style,
TextStyle? h5Style,
TextStyle? h6Style,
TextStyle? paragraphStyle,
TextStyle? blockquoteStyle,
TextStyle? codeBlockStyle,
TextStyle? inlineCodeStyle,
TextStyle? linkStyle,
TextStyle? boldStyle,
TextStyle? italicStyle,
TextStyle? strikethroughStyle,
TextStyle? listBulletStyle,
TextStyle? tableHeaderStyle,
TextStyle? tableCellStyle,
BoxDecoration? blockquoteDecoration,
BoxDecoration? codeBlockDecoration,
TableBorder? tableBorder,
BoxDecoration? tableHeaderDecoration,
BoxDecoration? tableOddRowDecoration,
BoxDecoration? tableEvenRowDecoration,
Color? horizontalRuleColor,
double? horizontalRuleThickness,
double? blockSpacing,
double? listIndent,
EdgeInsets? blockquotePadding,
EdgeInsets? codeBlockPadding,
EdgeInsets? tableCellPadding,
}) {
return MarkdownStyleSheet(
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,
paragraphStyle: paragraphStyle ?? this.paragraphStyle,
blockquoteStyle: blockquoteStyle ?? this.blockquoteStyle,
codeBlockStyle: codeBlockStyle ?? this.codeBlockStyle,
inlineCodeStyle: inlineCodeStyle ?? this.inlineCodeStyle,
linkStyle: linkStyle ?? this.linkStyle,
boldStyle: boldStyle ?? this.boldStyle,
italicStyle: italicStyle ?? this.italicStyle,
strikethroughStyle: strikethroughStyle ?? this.strikethroughStyle,
listBulletStyle: listBulletStyle ?? this.listBulletStyle,
tableHeaderStyle: tableHeaderStyle ?? this.tableHeaderStyle,
tableCellStyle: tableCellStyle ?? this.tableCellStyle,
blockquoteDecoration: blockquoteDecoration ?? this.blockquoteDecoration,
codeBlockDecoration: codeBlockDecoration ?? this.codeBlockDecoration,
tableBorder: tableBorder ?? this.tableBorder,
tableHeaderDecoration: tableHeaderDecoration ?? this.tableHeaderDecoration,
tableOddRowDecoration: tableOddRowDecoration ?? this.tableOddRowDecoration,
tableEvenRowDecoration: tableEvenRowDecoration ?? this.tableEvenRowDecoration,
horizontalRuleColor: horizontalRuleColor ?? this.horizontalRuleColor,
horizontalRuleThickness:
horizontalRuleThickness ?? this.horizontalRuleThickness,
blockSpacing: blockSpacing ?? this.blockSpacing,
listIndent: listIndent ?? this.listIndent,
blockquotePadding: blockquotePadding ?? this.blockquotePadding,
codeBlockPadding: codeBlockPadding ?? this.codeBlockPadding,
tableCellPadding: tableCellPadding ?? this.tableCellPadding,
);
}