DartProject.create constructor
Create a dart project on the file system at
pathTo from the template named templateName.
@Throwing(ArgumentError)
@Throwing(CopyException)
@Throwing(CopyTreeException)
@Throwing(CreateDirException)
@Throwing(DartProjectException)
@Throwing(DeleteException)
@Throwing(DuplicateKeyException)
@Throwing(InvalidArgumentException)
@Throwing(InvalidProjectTemplateException)
@Throwing(MoveException)
@Throwing(NotFoundException)
@Throwing(PubSpecException)
@Throwing(RangeError)
@Throwing(VersionException)
Implementation
factory DartProject.create({
required String pathTo,
required String templateName,
}) {
_createProject(pathTo, templateName);
return DartProject.fromPath(pathTo, search: false);
}