unmap method

bool unmap(
  1. DOMNode domNode,
  2. T element
)

Unmap from this instance the pair domNode and element.

Implementation

bool unmap(DOMNode domNode, T element) {
  if (element == null) return false;

  var prev = _domNodeToElementMap[domNode];

  if (prev == element) {
    _domNodeToElementMap.remove(domNode);
    _elementToDOMNodeMap.remove(prev);
    return true;
  }

  return false;
}