packageRoot property

String packageRoot

The --package-root flag passed to the executable used to run the script in this isolate.

If present, it specifies the directory where Dart packages are looked up.

Is null if there is no --package-root flag.

Source

static String get packageRoot => _Platform.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-io/Platform/packageRoot.html