Clone this repo:
  1. 9c21c2c Run dartfmt --fix (#25) by Nate Bosch · 4 weeks ago master
  2. c61d7cf Prepare to republish as 1.0.10 by Nate Bosch · 4 weeks ago 1.0.10
  3. d34ba6e Prepare to republish as 1.0.10 by Nate Bosch · 4 weeks ago
  4. a2fca9e Prepare to republish `1.0.6` with as `1.0.9` by Nate Bosch · 4 weeks ago 1.0.9
  5. cd2b4a3 Import dart:async when using Future to support Dart 2.0.0 (#22) by Kevin Moore · 4 weeks ago 1.0.8

A package that defines a common class, PackageResolver, for 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 .dart.js file.

The Dart VM provides two mutually exclusive means of resolving package: URIs: a package spec and a package root.

  • A package spec usually comes in the form of a .packages file on the filesystem. It defines an individual root URL for each package name, so that package:$name/$path resolves to $root/$path.

  • A package root is a single URL that acts as the base for all package: URIs, so that package:$name/$path resolves to $base/$name/$path.

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.