MarkdownBuilder class

Builds a Widget tree from parsed Markdown.

See also:

  • Markdown, which is a widget that parses and displays Markdown.
Implemented types

Constructors

MarkdownBuilder({@required MarkdownBuilderDelegate delegate, @required bool selectable, @required MarkdownStyleSheet styleSheet, @required String imageDirectory, @required MarkdownImageBuilder imageBuilder, @required MarkdownCheckboxBuilder checkboxBuilder, @required Map<String, MarkdownElementBuilder> builders, bool fitContent: false})
Creates an object that builds a Widget tree from parsed Markdown.

Properties

builders Map<String, MarkdownElementBuilder>
Call when build a custom widget.
final
checkboxBuilder MarkdownCheckboxBuilder
Call when build a checkbox widget.
final
delegate MarkdownBuilderDelegate
A delegate that controls how link and pre elements behave.
final
fitContent bool
Whether to allow the widget to fit the child content.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
imageBuilder MarkdownImageBuilder
Call when build an image widget.
final
imageDirectory String
The base directory holding images referenced by Img tags with local or network file paths.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectable bool
If true, the text is selectable. [...]
final
styleSheet MarkdownStyleSheet
Defines which TextStyle objects to use for each type of element.
final

Methods

build(List<Node> nodes) List<Widget>
Returns widgets that display the given Markdown nodes. [...]
extractTextFromElement(dynamic element) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
visitElementAfter(Element element) → void
Called when an Element has been reached, after its children have been visited. [...]
override
visitElementBefore(Element element) bool
Called when an Element has been reached, before its children have been visited. [...]
override
visitText(Text text) → void
Called when a Text node has been reached.
override

Operators

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