getOrFail<T> method
Returns the value of the key or throws an exception if not found.
Implementation
@override
T getOrFail<T>(String key) {
final value = get<T>(key);
if (value == null) {
throw ConfigException('Configuration key "$key" not found or is null.');
}
return value;
}