DartPackage.resolve constructor

DartPackage.resolve(
  1. String path
)

Construct an instance with the specified path.

The given path will be absoluted and normalized, that you can specify even a relative path to current working directory. But when there's already an instance of Directory or its absolute path, the unnamed constructor might be a more efficient way.

Implementation

DartPackage.resolve(String path)
  : root = Directory(normalize(absolute(path)));