createRepoFiles function
void
createRepoFiles(
{ - required String dataPath,
- 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));
}