sortDependencies method

void sortDependencies()

Implementation

void sortDependencies() {
  DependencySorter sorter = DependencySorter();
  _dependencyOrder = sorter.sort(_root);
  int graphOrder = 0;
  for (final ActorComponent? component in _dependencyOrder!) {
    component!.graphOrder = graphOrder++;
    component.dirtMask = 255;
  }
  _flags |= ActorFlags.isDirty;
}