MarkdownWidget constructor

const MarkdownWidget({
  1. Key? key,
  2. required String data,
  3. bool selectable = false,
  4. MarkdownStyleSheet? styleSheet,
  5. MarkdownStyleSheetBaseTheme? styleSheetTheme = MarkdownStyleSheetBaseTheme.material,
  6. SyntaxHighlighter? syntaxHighlighter,
  7. MarkdownTapLinkCallback? onTapLink,
  8. VoidCallback? onTapText,
  9. String? imageDirectory,
  10. List<BlockSyntax>? blockSyntaxes,
  11. List<InlineSyntax>? inlineSyntaxes,
  12. ExtensionSet? extensionSet,
  13. MarkdownImageBuilder? imageBuilder,
  14. MarkdownCheckboxBuilder? checkboxBuilder,
  15. MarkdownBulletBuilder? bulletBuilder,
  16. Map<String, MarkdownElementBuilder> builders = const <String, MarkdownElementBuilder>{},
  17. bool fitContent = false,
  18. MarkdownListItemCrossAxisAlignment listItemCrossAxisAlignment = MarkdownListItemCrossAxisAlignment.baseline,
})

Creates a widget that parses and displays Markdown.

The data argument must not be null.

Implementation

const MarkdownWidget({
  Key? key,
  required this.data,
  this.selectable = false,
  this.styleSheet,
  this.styleSheetTheme = MarkdownStyleSheetBaseTheme.material,
  this.syntaxHighlighter,
  this.onTapLink,
  this.onTapText,
  this.imageDirectory,
  this.blockSyntaxes,
  this.inlineSyntaxes,
  this.extensionSet,
  this.imageBuilder,
  this.checkboxBuilder,
  this.bulletBuilder,
  this.builders = const <String, MarkdownElementBuilder>{},
  this.fitContent = false,
  this.listItemCrossAxisAlignment =
      MarkdownListItemCrossAxisAlignment.baseline,
}) : super(key: key);