getConfig static method

Object? getConfig(
  1. String name,
  2. Node? profile
)

Implementation

static Object? getConfig(String name, Node? profile) {
  if (global.configs.containsKey(name)) {
    return global.configs[name];
  }
  if (profile is DefinitionNode && profile.configs.containsKey(name)) {
    return profile.configs[name];
  }
  return defaultConfig;
}