documentOffset property

int get documentOffset

Offset in characters of this node in the document.

Implementation

int get documentOffset {
  final parentOffset = (_parent is! RootNode) ? _parent!.documentOffset : 0;
  return parentOffset + offset;
}