DartPackage constructor

const DartPackage(
  1. Directory root
)

Construct an instance with the specified root directory object.

It's strongly recommended to use an absoluted and normalized path. Once there's no existing Directory instance, the DartPackage.resolve constructor might be a more convenient choice, as it will resolve the given path, absolute and normalize the raw parameter in type String

Implementation

const DartPackage(this.root);