MarkdownGenerator class

use MarkdownGenerator to transform markdown data to Widget list, so you can render it by any type of ListView

Constructors

MarkdownGenerator({Iterable<InlineSyntax> inlineSyntaxList = const [], Iterable<BlockSyntax> blockSyntaxList = const [], EdgeInsets linesMargin = const EdgeInsets.symmetric(vertical: 8), List<SpanNodeGeneratorWithTag> generators = const [], SpanNodeAcceptCallback? onNodeAccepted, ExtensionSet? extensionSet, TextNodeGenerator? textGenerator, SpanNodeBuilder? spanNodeBuilder, RichTextBuilder? richTextBuilder, RegExp? splitRegExp})

Properties

blockSyntaxList Iterable<BlockSyntax>
final
extensionSet → ExtensionSet?
final
generators List<SpanNodeGeneratorWithTag>
final
hashCode int
The hash code for this object.
no setterinherited
inlineSyntaxList Iterable<InlineSyntax>
final
linesMargin EdgeInsets
final
onNodeAccepted SpanNodeAcceptCallback?
final
richTextBuilder RichTextBuilder?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spanNodeBuilder SpanNodeBuilder?
final
splitRegExp RegExp?
final
textGenerator TextNodeGenerator?
final

Methods

buildWidgets(String data, {ValueCallback<List<Toc>>? onTocList, MarkdownConfig? config}) List<Widget>
convert data to widgets onTocList can provider Toc list
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited