checkModularPatternScreenExist method

Future<void> checkModularPatternScreenExist(
  1. String moduleName
)

Implementation

Future<void> checkModularPatternScreenExist(String moduleName) async {
  for (String screen in CliDataProvider.instance.args.sublist(2)) {
    bool screenExist = await checkDirectoryExist("${Constants.modulesDirectoryPath}/$moduleName/$screen");
    if (screenExist) {
      String path = "${Constants.modulesDirectoryPath}/$moduleName/$screen".path;
      throw CliException(message: "$path already exist");
    }
  }
}