Future<Uri> packageRoot

Returns the package root 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.

Source

external static Future<Uri> get packageRoot;