showPermittedConfigValues function

void showPermittedConfigValues(
  1. ConfigurationNameDefaults defaults
)

Implementation

void showPermittedConfigValues(ConfigurationNameDefaults defaults) {
  print("Invalid <CONFIG-PARAM>");
  print("Permitted values :");
  Map<ConfigurationNameEnum, ConfigurationNameStruct> configurationNameMap =
      defaults.getConfigurationNameMap();
  int count = 1;

  configurationNameMap.values.forEach((ConfigurationNameStruct struct) {
    if (count != 1) print(", ");
    if (count % 6 == 0) print('');
    print(struct.name);
    count++;
  });
  print('');
}