nextSiblings property

  1. @override
List<Bs4Element> nextSiblings

Gets all next elements on the same level of the parse tree.

Implementation

@override
List<Bs4Element> get nextSiblings {
  final nextSiblings = <Bs4Element>[];
  Bs4Element? elementIter = nextSibling;
  while (elementIter != null) {
    nextSiblings.add(elementIter);
    elementIter = elementIter.nextSibling;
  }
  return nextSiblings;
}