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;