DartScript.createScript constructor

DartScript.createScript({
  1. required DartProject project,
  2. required String scriptName,
  3. required String templateName,
})

Implementation

factory DartScript.createScript(
    {required DartProject project,
    required String scriptName,
    required String templateName}) {
  scriptCreator(
      project: project, scriptName: scriptName, templateName: templateName);

  return DartScript.fromFile(join(project.pathToProjectRoot, scriptName));
}