genGen function

void genGen(
  1. String path
)

Implementation

void genGen(String path) {
  final genPath = '${path}/lib/gen';
  genDir(genPath);

  final genDomainPath = '${genPath}/${domainName}';
  genDir(genDomainPath);
  final models = genFile('${genDomainPath}/i_domain_models.dart');
  genEDNetCoreModels(models);

  final genModelPath = '${genDomainPath}/${modelName}';
  genDir(genModelPath);
  final entries = genFile('${genModelPath}/model_entries.dart');
  genEDNetCoreEntries(entries);
  for (final concept in ednetCoreModel.concepts) {
    final conceptEntitiesGen =
        genFile('${genModelPath}/${concept.codesLowerUnderscore}.dart');
    genConceptEntitiesGen(conceptEntitiesGen, concept);
  }
}