findIfNodeIsChildInTree method

bool findIfNodeIsChildInTree(
  1. CNode? proposedParent,
  2. CNode proposedChild
)

Implementation

bool findIfNodeIsChildInTree(
  final CNode? proposedParent,
  final CNode proposedChild,
) {
  final children = _instance.findAllChildren(proposedParent);
  if (children.contains(proposedChild)) {
    return true;
  }
  return false;
}