MarkdownStyleSheet constructor
- {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,
- 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.start,
- WrapAlignment h1Align = WrapAlignment.start,
- WrapAlignment h2Align = WrapAlignment.start,
- WrapAlignment h3Align = WrapAlignment.start,
- WrapAlignment h4Align = WrapAlignment.start,
- WrapAlignment h5Align = WrapAlignment.start,
- WrapAlignment h6Align = WrapAlignment.start,
- WrapAlignment unorderedListAlign = WrapAlignment.start,
- WrapAlignment orderedListAlign = WrapAlignment.start,
- WrapAlignment blockquoteAlign = WrapAlignment.start,
- WrapAlignment codeblockAlign = WrapAlignment.start,
- double textScaleFactor}
Creates an explicit mapping of TextStyle
objects to Markdown elements.
Implementation
MarkdownStyleSheet({
this.a,
this.p,
this.code,
this.h1,
this.h2,
this.h3,
this.h4,
this.h5,
this.h6,
this.em,
this.strong,
this.del,
this.blockquote,
this.img,
this.checkbox,
this.blockSpacing,
this.listIndent,
this.listBullet,
this.tableHead,
this.tableBody,
this.tableHeadAlign,
this.tableBorder,
this.tableColumnWidth,
this.tableCellsPadding,
this.tableCellsDecoration,
this.blockquotePadding,
this.blockquoteDecoration,
this.codeblockPadding,
this.codeblockDecoration,
this.horizontalRuleDecoration,
this.textAlign = WrapAlignment.start,
this.h1Align = WrapAlignment.start,
this.h2Align = WrapAlignment.start,
this.h3Align = WrapAlignment.start,
this.h4Align = WrapAlignment.start,
this.h5Align = WrapAlignment.start,
this.h6Align = WrapAlignment.start,
this.unorderedListAlign = WrapAlignment.start,
this.orderedListAlign = WrapAlignment.start,
this.blockquoteAlign = WrapAlignment.start,
this.codeblockAlign = WrapAlignment.start,
this.textScaleFactor,
}) : _styles = <String, TextStyle>{
'a': a,
'p': p,
'li': p,
'code': code,
'pre': p,
'h1': h1,
'h2': h2,
'h3': h3,
'h4': h4,
'h5': h5,
'h6': h6,
'em': em,
'strong': strong,
'del': del,
'blockquote': blockquote,
'img': img,
'table': p,
'th': tableHead,
'tr': tableBody,
'td': tableBody,
};