A package that defines a common class,
defining how to resolve
package: URIs. This class may be based on the current
isolate's package resolution strategy, but it may also be explicitly defined by
the user—for example, you could create a resolver that represents the strategy
used to compile a
The Dart VM provides two mutually exclusive means of resolving
a package spec and a package root.
A package spec usually comes in the form of a
.packagesfile on the filesystem. It defines an individual root URL for each package name, so that
A package root is a single URL that acts as the base for all
package:URIs, so that
This normalizes access to these resolution schemes, and makes it easy for code to resolve package URIs no matter where the resolution information comes from.