packageConfig property

Future<Uri?> packageConfig

The location of the package configuration file of the current isolate.

If the isolate was spawned without specifying its package configuration file then the returned value is null.

Otherwise, the returned value is an absolute URI specifying the location of isolate's package configuration file.

The package configuration file is usually named package_config.json, and you can use package:package_config to read and parse it.

Implementation

external static Future<Uri?> get packageConfig;