visitElementBefore method

  1. @override
bool visitElementBefore(
  1. Element element
)

Called when an Element has been reached, before its children have been visited.

Returns false to skip its children.

Implementation

@override
bool visitElementBefore(md.Element element) {
  final node = flavor[element.tag]?.call() ?? Node();
  node.attributes.addAll(element.attributes);
  _stack.add(node);
  return true;
}