readProjectStyle method

AFGeneratedFile readProjectStyle(
  1. AFCommandContext context,
  2. List<String> projectPath,
  3. dynamic templateOrId, {
  4. AFSourceTemplateInsertions? insertions,
})

Implementation

AFGeneratedFile readProjectStyle(AFCommandContext context, List<String> projectPath, dynamic templateOrId, {
  AFSourceTemplateInsertions? insertions,
}) {
  // if we are generating templates, then generate it at the
  final generated = _createFile(context, projectPath, templateOrId, AFGeneratedFileAction.projectStyle);
  if(insertions != null && !context.isExportTemplates) {
    generated.performInsertions(context, insertions);
  }
  return generated;
}