getEnv static method

dynamic getEnv(
  1. String key, [
  2. dynamic def
])

Get environment variable

Implementation

static dynamic getEnv(String key, [dynamic def]) {
  return Platform.environment[key] ?? def;
}