String packageRoot

Returns the value of the --package-root flag passed to the executable used to run the script in this isolate. This is the directory in which Dart packages are looked up.

If there is no --package-root flag, null is returned.

Source

static String get packageRoot => _Platform.packageRoot;