DependencyTreeNode constructor
Construct the tree from the self
root. This may not be cheap, use
carefully.
Implementation
DependencyTreeNode(this.self, [this.type = const None()]) {
ArgumentError.checkNotNull(self);
if (self is IAmAnDependencyTreeNode) {
final s = self as IAmAnDependencyTreeNode;
_children.addAll(s.childNodes());
}
}