AssetsGraph constructor
AssetsGraph(
- String hash
A graph of Dart assets and their dependencies.
The AssetsGraph tracks all Dart files in the project, their declarations, and the relationships between them (imports, exports, parts).
It provides methods to:
- Query assets by package
- Look up declarations
- Trace dependencies between files
- Track generated outputs
- Determine which assets need processing
The graph can be persisted to disk to improve build performance across runs.
Implementation
AssetsGraph(this.hash) : loadedFromCache = false, shouldInvalidate = false;