accept method

  1. @override
void accept(
  1. SpanNode? node
)
override

use accept to add a child

Implementation

@override
void accept(SpanNode? node) {
  super.accept(node);
  if (node != null && node is ListNode) {
    node._index = start;
    start++;
  }
}