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