WidgetVisitor constructor

WidgetVisitor({
  1. MarkdownConfig? config,
  2. List<SpanNodeGeneratorWithTag> generators = const [],
  3. SpanNodeAcceptCallback? onNodeAccepted,
  4. TextNodeGenerator? textGenerator,
  5. RichTextBuilder? richTextBuilder,
  6. 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;
  }
}