MarkdownElementBuilder class abstract

Constructors

MarkdownElementBuilder({BuildContext? context, TextStyle? textStyle, Map<String, TextStyle?>? textStyleMap})

Properties

context BuildContext?
final
darkMode bool
final
hashCode int
The hash code for this object.
no setterinherited
matchTypes List<String>
Which element types should it match.
no setter
parentStyle TextStyle?
TextStyle of the parent element.
getter/setter pair
renderer MarkdownRenderer
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle?
TextStyle of the current element.
final
textStyleMap Map<String, TextStyle?>?
If matchTypes matches more than one type, you need to use textStyleMap to set TextStyle for each type.
final

Methods

blockPadding(MarkdownTreeElement element, MarkdownTreeElement parent) EdgeInsets?
buildText(String text, MarkdownTreeElement parent) TextSpan
Runs when current element contains md.Text child.
buildTextStyle(MarkdownElement element, TextStyle defaultStyle) TextStyle?
Builds a TextStyle for the current element. It merges the textStyle of current matched element into parentStyle and returns the result by default.
buildWidget(MarkdownTreeElement element, MarkdownTreeElement parent) Widget?
Builds a widget of current element and adds to the element tree.
createText(MarkdownTreeElement element, TextStyle? parentStyle) TextSpan?
To create a TextSpan the same as buildText when an element does not have a md.Text child.
gestureRecognizer(MarkdownElement element) GestureRecognizer?
Creates a GestureRecognizer for the current element and it's descendants.
init(MarkdownElement element) → void
Called when an Element has been reached, before it's children have been built.
isBlock(MarkdownTreeElement element) bool
If it is a block element, it uses the value from element by default.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(MarkdownRenderer renderer) → void
Initilizes renderer instance.
replaceLineEndings(String type) bool
Whether to replace line endings with whitespaces. It effects all the descendants of current element.
textAlign(MarkdownTreeElement parent) TextAlign?
Sets a new TextAlign instead of using the default one.
toString() String
A string representation of this object.
inherited

Operators

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