readConfigFile method

ModulerModel readConfigFile(
  1. String path
)

Implementation

ModulerModel readConfigFile(String path) {
  final file = File(path);
  final readedFile = file.readAsStringSync();

  final YamlMap parsedYaml = loadYaml(readedFile);

  return ModulerModel.fromJson(parsedYaml);
}