get static method

String get(
  1. String key, {
  2. String defaultValue = '',
})

Retrieves the value of the specified environment variable. If the key doesn't exist, returns the defaultValue.

Implementation

static String get(String key, {String defaultValue = ''}) {
  return _env[key] ?? defaultValue;
}