packageGraph property

Future<PackageGraph> get packageGraph

The package graph for the application and all of its transitive dependencies.

Throws a DataException if the .dart_tool/package_config.json file isn't up-to-date relative to the pubspec and the lockfile.

Implementation

Future<PackageGraph> get packageGraph =>
    _packageGraph ??= _createPackageGraph();