createRepoFiles function

void createRepoFiles({
  1. required String dataPath,
  2. required String featureName,
})

Implementation

void createRepoFiles({required String dataPath, required String featureName}) {
  final repoPath = path.join(dataPath, 'repos');
  print('Creating feature layer: $repoPath');
  Directory(repoPath).createSync(recursive: true);
  final repoFilePath = path.join(
    repoPath,
    '${featureName}_${reposFiles[0]}.dart',
  );
  print('Creating file: $repoFilePath');
  File(repoFilePath).writeAsStringSync(repoContent(featureName));
}