removeNode method

bool removeNode(
  1. DOMNode node
)

Removes node from children list.

Implementation

bool removeNode(DOMNode node) {
  if (isEmptyContent) return false;

  var idx = indexOfNodeIdenticalFirst(node);
  if (idx < 0) {
    return false;
  }

  var removed = _content!.removeAt(idx);

  removed.parent = null;
  return true;
}