nodeWhere<T extends DOMNode> method

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

Implementation

T? nodeWhere<T extends DOMNode>(Object? selector) {
  if (selector == null || isEmptyContent) return null;
  bool Function(DOMNode) nodeSelector = asNodeSelector(selector)!;
  return _content!.firstWhereOrNull(nodeSelector) as T?;
}