getRawOrFail<T extends dynamic> method

T getRawOrFail<T extends dynamic>(
  1. String key
)

Implementation

T getRawOrFail<T extends dynamic>(String key) {
  return _values.entries
      .firstWhere((element) => element.key == key,
          orElse: () =>
              throw Exception('Environment variable $key not found'))
      .value as T;
}