getOrThrow method
Gets a value by name
from the underlying config map, or throws a
MissingConfigError if the underlying map does not contain the name
.
Implementation
String getOrThrow(String name) {
if (!_env.containsKey(name) &&
!_augments.values.any((m) => m.containsKey(name))) {
throw MissingConfigError(name);
}
return _env[name] ??
_augments.values.firstWhere((m) => m.containsKey(name))[name]!;
}