removeEnvironmentVariable method

void removeEnvironmentVariable(
  1. String key
)

Removes an environment variable from the current process Only affects the in-memory copy of environment variables

Implementation

void removeEnvironmentVariable(String key) {
  // Remove from our local copy only
  _environmentVariables.remove(key);
  // Note: This only affects the current process
}