isInSameParent method

bool isInSameParent(
  1. DOMNode other
)

Returns true if other is in the same parent of this node.

Implementation

bool isInSameParent(DOMNode other) {
  var parent = this.parent;
  return parent != null && parent == other.parent;
}