isParentOf method

bool isParentOf(
  1. Node node
)

Implementation

bool isParentOf(Node node) {
  var parent = node.parent;
  while (parent != null) {
    if (parent.id == id) {
      return true;
    }
    parent = parent.parent;
  }
  return false;
}