EmbedderUriResolver class

Given the 'embedderYamls' from EmbedderYamlLocator check each one for the top level key 'embedded_libs'. Under the 'embedded_libs' key are key value pairs. Each key is a 'dart:' library uri and each value is a path (relative to the directory containing _embedder.yaml) to a dart script for the given library. For example:

embedded_libs: 'dart:io': '../../sdk/io/io.dart'

If a key doesn't begin with dart: it is ignored.

This class is deprecated; use DartUriResolver directly. In particular, if there used to be an instance creation of the form:

new EmbedderUriResolver(embedderMap)

This should be replaced by

new DartUriResolver(new EmbedderSdk(embedderMap))


EmbedderUriResolver(Map<Folder, YamlMap> embedderMap)
Construct a EmbedderUriResolver from a package map (see PackageMapProvider).


dartSdk → DartSdk
Return the DartSdk against which URIs are to be resolved. [...]
hashCode int
The hash code for this object. [...]
read-only, inherited
length int
Number of embedded libraries.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


clearCache() → void
Clear any cached URI resolution information.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
resolveAbsolute(Uri uri, [Uri actualUri]) → Source
Resolve the given absolute URI. Return a Source representing the file to which it was resolved, whether or not the resulting source exists, or null if it could not be resolved because the URI is invalid. [...]
restoreAbsolute(Source source) Uri
Return an absolute URI that represents the given source, or null if a valid URI cannot be computed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]