nodeEquals<T extends DOMNode> method

T? nodeEquals<T extends DOMNode>(
  1. DOMNode? node
)

Returns a node T that is equals to node.

Implementation

T? nodeEquals<T extends DOMNode>(DOMNode? node) {
  if (node == null || isEmptyContent) return null;
  return nodeWhere((n) => n == node);
}