DependencyGraph class
依赖分析器 — 封装拓扑排序和循环依赖检测
所有任务 PreloadTask 统一使用字符串 ID 声明依赖,支持跨类型依赖。
Constructors
-
DependencyGraph(List<
PreloadTask> tasks)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tasks
→ List<
PreloadTask> -
final
Methods
-
buildExecutionOrder(
) → List< List< PreloadTask> > - 构建任务执行顺序(Kahn 拓扑排序) 返回按层级分组的任务列表,同一层级的任务可以并发执行
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void - 验证任务依赖关系,检测循环依赖
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited