shellEnvironment top-level property

Map<String, String> get 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;
set 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);
  }
}