selectAllWhere<T extends DOMNode> method

List<T> selectAllWhere<T extends DOMNode>(
  1. Object? selector
)

Returns a List<T> of children nodes that matches selector.

Implementation

List<T> selectAllWhere<T extends DOMNode>(Object? selector) {
  if (selector == null || isEmptyContent) return <T>[];
  var nodeSelector = asNodeSelector(selector);

  var all = <T>[];
  _selectAllWhereImpl(nodeSelector, all);
  return all;
}