Env class

环境变量

Available extensions

Constructors

Env({Map<String, String> environment = const {}})

Properties

env Map<String, String>
环境变量
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String name) String

Available on Env, provided by the EnvGet extension

toString() String
A string representation of this object.
inherited

Operators

operator +(Env environment) → void
operator ==(Object other) bool
The equality operator.
inherited
operator [](String name) String?
获取环境变量
operator []=(String name, String value) → void
设置环境变量