packageRoot property
Future<Uri> packageRootReturns 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;
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-isolate/Isolate/packageRoot.html