get method

String get(
  1. String key
)

Returns the raw string value for key in the current environment.

Throws EnvKeyNotFoundException when the key is absent.

Implementation

String get(String key) {
  final value = _currentEnv[key];
  if (value == null) {
    throw EnvKeyNotFoundException(key, envName: current.name);
  }
  return value;
}