loadConfigFileFromYaml function

Config? loadConfigFileFromYaml(
  1. String prefixPath
)

Load the configurations from the yaml file selected

Implementation

Config? loadConfigFileFromYaml(String prefixPath) {
  if(prefixPath == 'nrfutil.yaml or pubspec.yaml'){
    prefixPath = 'nrfutil.yaml';
  }
  final flutterLauncherIconsConfigs = Config.loadConfigFromPath(prefixPath) ?? Config.loadConfigFromPubSpec();
  return flutterLauncherIconsConfigs;
}