packageConfig property - Isolate class - dart:isolate library (original) (raw)

Future<Uri?> getpackageConfig

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_configto read and parse it.

Implementation

external static Future<Uri?> get packageConfig;