offset property
int
get
offset
Offset in characters of this node relative to parent node.
To get offset of this node in the document see documentOffset.
Implementation
int get offset {
if (_offset != null) {
return _offset!;
}
if (list == null || isFirst) {
return 0;
}
var offset = 0;
for (final node in list!) {
if (node == this) {
break;
}
offset += node.length;
}
_offset = offset;
return _offset!;
}