Markdown constructor

const Markdown({
  1. Key? key,
  2. required String data,
  3. bool selectable = false,
  4. MarkdownStyleSheet? styleSheet,
  5. MarkdownStyleSheetBaseTheme? styleSheetTheme,
  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. MarkdownListItemCrossAxisAlignment listItemCrossAxisAlignment = MarkdownListItemCrossAxisAlignment.baseline,
  18. EdgeInsets padding = const EdgeInsets.all(16.0),
  19. ScrollController? controller,
  20. ScrollPhysics? physics,
  21. bool shrinkWrap = false,
})

Creates a scrolling widget that parses and displays Markdown.

Implementation

const Markdown({
  Key? key,
  required String data,
  bool selectable = false,
  MarkdownStyleSheet? styleSheet,
  MarkdownStyleSheetBaseTheme? styleSheetTheme,
  SyntaxHighlighter? syntaxHighlighter,
  MarkdownTapLinkCallback? onTapLink,
  VoidCallback? onTapText,
  String? imageDirectory,
  List<md.BlockSyntax>? blockSyntaxes,
  List<md.InlineSyntax>? inlineSyntaxes,
  md.ExtensionSet? extensionSet,
  MarkdownImageBuilder? imageBuilder,
  MarkdownCheckboxBuilder? checkboxBuilder,
  MarkdownBulletBuilder? bulletBuilder,
  Map<String, MarkdownElementBuilder> builders =
      const <String, MarkdownElementBuilder>{},
  MarkdownListItemCrossAxisAlignment listItemCrossAxisAlignment =
      MarkdownListItemCrossAxisAlignment.baseline,
  this.padding = const EdgeInsets.all(16.0),
  this.controller,
  this.physics,
  this.shrinkWrap = false,
}) : super(
        key: key,
        data: data,
        selectable: selectable,
        styleSheet: styleSheet,
        styleSheetTheme: styleSheetTheme,
        syntaxHighlighter: syntaxHighlighter,
        onTapLink: onTapLink,
        onTapText: onTapText,
        imageDirectory: imageDirectory,
        blockSyntaxes: blockSyntaxes,
        inlineSyntaxes: inlineSyntaxes,
        extensionSet: extensionSet,
        imageBuilder: imageBuilder,
        checkboxBuilder: checkboxBuilder,
        builders: builders,
        listItemCrossAxisAlignment: listItemCrossAxisAlignment,
        bulletBuilder: bulletBuilder,
      );