isAncestor method
Проверяет, является ли один узел предком другого
Implementation
@override
bool isAncestor({required Node ancestor, required Node descendant}) {
return getPathToNode(descendant).contains(ancestor);
}
Проверяет, является ли один узел предком другого
@override
bool isAncestor({required Node ancestor, required Node descendant}) {
return getPathToNode(descendant).contains(ancestor);
}