packageGraph property

Future<PackageGraph> packageGraph

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

Throws a DataError 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();