buildDependencies method Null safety

  1. @mustCallSuper
void buildDependencies()
@mustCallSuper, inherited

Implementation

@mustCallSuper
void buildDependencies() {
  for (final parentDep in _dependsOn) {
    parentDep._dependents.remove(this);
  }
  _dependsOn.clear();
  // by default a component depends on nothing (likely it will depend on the
  // parent but we leave that for specific implementations to supply).
}