catchNodesWhere<T extends DOMNode> method

void catchNodesWhere<T extends DOMNode>(
  1. Object? selector,
  2. List<T> destiny
)

Implementation

void catchNodesWhere<T extends DOMNode>(Object? selector, List<T> destiny) {
  if (selector == null || isEmptyContent) return;
  var nodeSelector = asNodeSelector(selector)!;
  var nodes = _content!.where(nodeSelector).whereType<T>();
  destiny.addAll(nodes);
}