widget/widget_visitor library

Classes

SpanNodeGeneratorWithTag
use SpanNodeGeneratorWithTag that you can custom your own SpanNodeGenerator with tag
WidgetVisitor
use WidgetVisitor that can transform MarkdownNode to SpanNodes and you can use SpanNode with Text.rich or RichText to get widget

Typedefs

SpanNodeAcceptCallback = void Function(SpanNode node, int nodeIndex)
when a SpanNope is visited, this callback will be triggered
SpanNodeGenerator = SpanNode Function(Element e, MarkdownConfig config, WidgetVisitor visitor)
use SpanNodeGenerator will return a SpanNode
TextNodeGenerator = SpanNode? Function(Node node, MarkdownConfig config, WidgetVisitor visitor)
use TextNodeGenerator to custom your own TextNode
WidgetWrapper = Widget Function(Widget child)
wrap child by another widget