DartProject.create constructor

DartProject.create({
  1. required String pathTo,
  2. required String templateName,
})

Create a dart project on the file system at pathTo from the template named templateName.

Implementation

factory DartProject.create(
    {required String pathTo, required String templateName}) {
  _createProject(pathTo, templateName);
  return DartProject.fromPath(pathTo, search: false);
}