copyWith method
MarkdownStyleSheet
copyWith({
- TextStyle? a,
- TextStyle? p,
- TextStyle? code,
- TextStyle? h1,
- TextStyle? h2,
- TextStyle? h3,
- TextStyle? h4,
- TextStyle? h5,
- TextStyle? h6,
- TextStyle? em,
- TextStyle? strong,
- TextStyle? del,
- TextStyle? blockquote,
- TextStyle? img,
- TextStyle? checkbox,
- double? blockSpacing,
- double? listIndent,
- TextStyle? listBullet,
- EdgeInsets? listBulletPadding,
- TextStyle? tableHead,
- TextStyle? tableBody,
- TextAlign? tableHeadAlign,
- TableBorder? tableBorder,
- TableColumnWidth? tableColumnWidth,
- EdgeInsets? tableCellsPadding,
- Decoration? tableCellsDecoration,
- EdgeInsets? blockquotePadding,
- Decoration? blockquoteDecoration,
- EdgeInsets? codeblockPadding,
- Decoration? codeblockDecoration,
- Decoration? horizontalRuleDecoration,
- WrapAlignment? textAlign,
- WrapAlignment? h1Align,
- WrapAlignment? h2Align,
- WrapAlignment? h3Align,
- WrapAlignment? h4Align,
- WrapAlignment? h5Align,
- WrapAlignment? h6Align,
- WrapAlignment? unorderedListAlign,
- WrapAlignment? orderedListAlign,
- WrapAlignment? blockquoteAlign,
- WrapAlignment? codeblockAlign,
- double? textScaleFactor,
Creates a MarkdownStyleSheet based on the current style, with the provided parameters overridden.
Implementation
MarkdownStyleSheet copyWith({
TextStyle? a,
TextStyle? p,
TextStyle? code,
TextStyle? h1,
TextStyle? h2,
TextStyle? h3,
TextStyle? h4,
TextStyle? h5,
TextStyle? h6,
TextStyle? em,
TextStyle? strong,
TextStyle? del,
TextStyle? blockquote,
TextStyle? img,
TextStyle? checkbox,
double? blockSpacing,
double? listIndent,
TextStyle? listBullet,
EdgeInsets? listBulletPadding,
TextStyle? tableHead,
TextStyle? tableBody,
TextAlign? tableHeadAlign,
TableBorder? tableBorder,
TableColumnWidth? tableColumnWidth,
EdgeInsets? tableCellsPadding,
Decoration? tableCellsDecoration,
EdgeInsets? blockquotePadding,
Decoration? blockquoteDecoration,
EdgeInsets? codeblockPadding,
Decoration? codeblockDecoration,
Decoration? horizontalRuleDecoration,
WrapAlignment? textAlign,
WrapAlignment? h1Align,
WrapAlignment? h2Align,
WrapAlignment? h3Align,
WrapAlignment? h4Align,
WrapAlignment? h5Align,
WrapAlignment? h6Align,
WrapAlignment? unorderedListAlign,
WrapAlignment? orderedListAlign,
WrapAlignment? blockquoteAlign,
WrapAlignment? codeblockAlign,
double? textScaleFactor,
}) {
return MarkdownStyleSheet(
a: a ?? this.a,
p: p ?? this.p,
code: code ?? this.code,
h1: h1 ?? this.h1,
h2: h2 ?? this.h2,
h3: h3 ?? this.h3,
h4: h4 ?? this.h4,
h5: h5 ?? this.h5,
h6: h6 ?? this.h6,
em: em ?? this.em,
strong: strong ?? this.strong,
del: del ?? this.del,
blockquote: blockquote ?? this.blockquote,
img: img ?? this.img,
checkbox: checkbox ?? this.checkbox,
blockSpacing: blockSpacing ?? this.blockSpacing,
listIndent: listIndent ?? this.listIndent,
listBullet: listBullet ?? this.listBullet,
listBulletPadding: listBulletPadding ?? this.listBulletPadding,
tableHead: tableHead ?? this.tableHead,
tableBody: tableBody ?? this.tableBody,
tableHeadAlign: tableHeadAlign ?? this.tableHeadAlign,
tableBorder: tableBorder ?? this.tableBorder,
tableColumnWidth: tableColumnWidth ?? this.tableColumnWidth,
tableCellsPadding: tableCellsPadding ?? this.tableCellsPadding,
tableCellsDecoration: tableCellsDecoration ?? this.tableCellsDecoration,
blockquotePadding: blockquotePadding ?? this.blockquotePadding,
blockquoteDecoration: blockquoteDecoration ?? this.blockquoteDecoration,
codeblockPadding: codeblockPadding ?? this.codeblockPadding,
codeblockDecoration: codeblockDecoration ?? this.codeblockDecoration,
horizontalRuleDecoration:
horizontalRuleDecoration ?? this.horizontalRuleDecoration,
textAlign: textAlign ?? this.textAlign,
h1Align: h1Align ?? this.h1Align,
h2Align: h2Align ?? this.h2Align,
h3Align: h3Align ?? this.h3Align,
h4Align: h4Align ?? this.h4Align,
h5Align: h5Align ?? this.h5Align,
h6Align: h6Align ?? this.h6Align,
unorderedListAlign: unorderedListAlign ?? this.unorderedListAlign,
orderedListAlign: orderedListAlign ?? this.orderedListAlign,
blockquoteAlign: blockquoteAlign ?? this.blockquoteAlign,
codeblockAlign: codeblockAlign ?? this.codeblockAlign,
textScaleFactor: textScaleFactor ?? this.textScaleFactor,
);
}