isInSameParent method

bool isInSameParent(
  1. T other
)

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

Implementation

bool isInSameParent(T other) {
  var nodeParent = domGenerator.getNodeParent(node);
  return nodeParent != null &&
      nodeParent == domGenerator.getNodeParent(other);
}