getConfig method

void getConfig()

The getConfig function reads a YAML file and assigns the value of the 'config' key to the config variable.

Implementation

void getConfig() {
  final configFile = File(_configFilePath);
  if (configFile.existsSync() == true) {
    final YamlMap map = loadYaml(configFile.readAsStringSync()) as YamlMap;
    config = map['config'];
  } else {
    print("[🚫] assets_cleaner.yaml file not found");
  }
}