sortDependencies method

void sortDependencies()

Implementation

void sortDependencies() {
  var optimistic = DependencySorter<Component>();
  var order = optimistic.sort(this);
  if (order == null) {
    var robust = TarjansDependencySorter<Component>();
    order = robust.sort(this);
  }
  _dependencyOrder = order;
  for (final component in _dependencyOrder) {
    component.graphOrder = graphOrder++;
  }
  _dirt |= ComponentDirt.components;
}