env top-level property
The default environment for subprocesses spawned by Platform.environment.
This is a copy of Platform.environment, except it's modifiable so that scripts can export variables for use in multiple subprocesses.
On Windows, environment keys are canonicalized to upper-case, since environment variables are case-insensitive.
Implementation
Map<String, String> get env {
var environment = Zone.current[#_environment];
return environment is Map<String, String> ? environment : _defaultEnvironment;
}