getOrFail<T> method

  1. @override
T getOrFail<T>(
  1. String key, {
  2. String? message,
})
override

Get environment key from .env file as T

Implementation

@override
T getOrFail<T> (String key, { String? message }) {
  final result = get(key);
  _exist(key, result);

  return result as T;
}