length property

  1. @override
int get length
inherited

Length of this node in characters.

Implementation

@override
int get length {
  _length ??= _children.fold(0, (cur, node) => (cur ?? 0) + node.length);
  return _length!;
}