accept method

void accept(
  1. SpanNode? node
)

use accept to add a child

Implementation

void accept(SpanNode? node) {
  if (node != null) children.add(node);
  node?._acceptParent(this);
}