DartPackage constructor
const
DartPackage(
- Directory root
Construct an instance with the specified root
directory object.
It's strongly recommended to use an absolute
d and normalize
d 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);