W3cubDocs

/Dart 2

packageRoot property

Future<Uri> packageRoot
@Deprecated('packages/ directory resolution is not supported in Dart 2.')

The location of the package configuration of the current isolate, if any.

This getter returns null, as the packages/ directory is not supported in Dart 2.

Implementation

@Deprecated('packages/ directory resolution is not supported in Dart 2.')
external static Future<Uri> get packageRoot;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-isolate/Isolate/packageRoot.html