Future<Map<String, Uri>> packageMap

Returns the package mapping of the current isolate, if any.

If the current isolate is using a packageRoot, this getter returns null.

The package map maps the name of a package that is available to the program, to a URI that package URIs for that package are resolved against.

Returns an empty map if the isolate does not have a way to resolve package URIs.