nodesWhere<T extends DOMNode> method

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

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

Implementation

List<T> nodesWhere<T extends DOMNode>(Object? selector) {
  if (selector == null || isEmptyContent) return <T>[];
  bool Function(DOMNode) nodeSelector = asNodeSelector(selector)!;
  return _content!.where(nodeSelector).whereType<T>().toList();
}