dotenv library

Classes

Parser
Parser creates key-value pairs from strings formatted as environment variable definitions.

Properties

env Map<String, String>
A copy of Platform.environment including variables loaded at runtime from a file.
read-only

Functions

clean() Map
Overwrite _env with a clean Platform.environment. Useful for testing.
isEveryDefined(Iterable<String> vars) bool
True if all supplied variables are present in the environment; false otherwise.
load([String filename = '.env', Parser psr = const Parser() ]) → void
Read environment variables from filename and add them to env.