nodesWhere<T extends DOMNode> method
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();
}