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. String imageDirectory,
  9. List<BlockSyntax> blockSyntaxes,
  10. List<InlineSyntax> inlineSyntaxes,
  11. ExtensionSet extensionSet,
  12. MarkdownImageBuilder imageBuilder,
  13. MarkdownCheckboxBuilder checkboxBuilder,
  14. Map<String, MarkdownElementBuilder> builders: const {},
  15. EdgeInsets padding: const EdgeInsets.all(16.0),
  16. ScrollController controller,
  17. ScrollPhysics physics,
  18. 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,
  String imageDirectory,
  List<md.BlockSyntax> blockSyntaxes,
  List<md.InlineSyntax> inlineSyntaxes,
  md.ExtensionSet extensionSet,
  MarkdownImageBuilder imageBuilder,
  MarkdownCheckboxBuilder checkboxBuilder,
  Map<String, MarkdownElementBuilder> builders = const {},
  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,
        imageDirectory: imageDirectory,
        blockSyntaxes: blockSyntaxes,
        inlineSyntaxes: inlineSyntaxes,
        extensionSet: extensionSet,
        imageBuilder: imageBuilder,
        checkboxBuilder: checkboxBuilder,
        builders: builders,
      );