WidgetVisitor constructor
WidgetVisitor({
- MarkdownConfig? config,
- List<
SpanNodeGeneratorWithTag> generators = const [], - SpanNodeAcceptCallback? onNodeAccepted,
- TextNodeGenerator? textGenerator,
- RichTextBuilder? richTextBuilder,
- RegExp? splitRegExp,
Implementation
WidgetVisitor({
MarkdownConfig? config,
this.generators = const [],
this.onNodeAccepted,
this.textGenerator,
this.richTextBuilder,
this.splitRegExp,
}) {
this.config = config ?? MarkdownConfig.defaultConfig;
for (var e in generators) {
_tag2node[e.tag] = e.generator;
}
}