shellEnvironment top-level property Null safety

Map<String, String> shellEnvironment

Cached shell environment with user config Same as userEnvironment

Implementation

// Map<String, String> get platformEnvironment => rawShellEnvironment

/// Same as userEnvironment
Map<String, String> get shellEnvironment =>
    _shellEnvironment ?? userEnvironment;
void shellEnvironment=(Map<String, String>? environment)

Warning, change the shell environment for the next run commands.

Implementation

set shellEnvironment(Map<String, String>? environment) {
  if (environment == null) {
    _shellEnvironment = null;
  } else {
    _shellEnvironment = asShellEnvironment(environment);
  }
}