MdcStyle constructor

const MdcStyle({
  1. TextStyle? text,
  2. TextStyle? heading1,
  3. TextStyle? heading2,
  4. TextStyle? heading3,
  5. TextStyle? heading4,
  6. TextStyle? heading5,
  7. TextStyle? heading6,
  8. TextStyle? link,
  9. TextStyle? inlineCode,
  10. TextStyle? codeBlock,
  11. TextStyle? listMarker,
  12. TextStyle? blockquote,
  13. double blockSpacing = 16,
  14. EdgeInsetsGeometry codeBlockPadding = const EdgeInsets.all(16),
  15. EdgeInsetsGeometry blockquotePadding = const EdgeInsetsDirectional.only(start: 16),
  16. EdgeInsetsGeometry tableCellPadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
  17. BoxDecoration? codeBlockDecoration,
  18. BoxDecoration? blockquoteDecoration,
  19. TableBorder? tableBorder,
})

Creates a set of optional MDC style overrides.

Implementation

const MdcStyle({
  this.text,
  this.heading1,
  this.heading2,
  this.heading3,
  this.heading4,
  this.heading5,
  this.heading6,
  this.link,
  this.inlineCode,
  this.codeBlock,
  this.listMarker,
  this.blockquote,
  this.blockSpacing = 16,
  this.codeBlockPadding = const EdgeInsets.all(16),
  this.blockquotePadding = const EdgeInsetsDirectional.only(start: 16),
  this.tableCellPadding = const EdgeInsets.symmetric(
    horizontal: 12,
    vertical: 8,
  ),
  this.codeBlockDecoration,
  this.blockquoteDecoration,
  this.tableBorder,
});