packageRoot property

Future<Uri> packageRoot

The location of the package configuration of the current isolate, if any.

If the isolate is using a packageConfig or the isolate has not been setup for package resolution, this getter returns null, otherwise it returns the package root - a directory that package URIs are resolved against.

Implementation

external static Future<Uri> get packageRoot;