DependencyTreeNode constructor

DependencyTreeNode(
  1. Object self, [
  2. Maybe<Type?> type = const None()
])

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());
  }
}