isInSameParent method

  1. @override
bool isInSameParent(
  1. Node other
)
override

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

Implementation

@override
bool isInSameParent(Node other) {
  var parent = node!.parent;
  return parent != null && parent == other.parent;
}