DartScript.createScript constructor
DartScript.createScript({
- required DartProject project,
- required String scriptName,
- 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));
}