gotoFirstChildForByte method
Implementation
int? gotoFirstChildForByte(int goalByte) {
_checkNotDisposed();
if (goalByte < 0) throw RangeError.value(goalByte, 'goalByte');
for (var index = 0; index < _node.childCount; index++) {
final child = _node.child(index)!;
if (child.endByte <= goalByte) continue;
_stack.add((parent: _node, childIndex: index));
_node = child;
return index;
}
return null;
}