operator [] method

String? operator [](
  1. String name
)

Returns the value of an environment variable.

name of the environment variable.

On posix systems name of the environment variable is case sensitive.

String path = env["PATH"];

Implementation

String? operator [](String name) => _env(name);