Env class
Properties
-
all
→ Map<
String, String> -
Every variable, as a map you can read but not change.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
path
↔ List<
String> -
The folders in
PATH, in the order they are searched.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
appendToPath(
String folder) → void -
Adds
folderto the end of path, so it is searched last. -
isOnPath(
String folder) → bool -
Whether
folderis one of the path folders. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prependToPath(
String folder) → void -
Adds
folderto the start of path, so it is searched first. -
printAll(
{String? only}) → void -
Prints the variables as a table, optionally only names matching
only. -
removeFromPath(
String folder) → void -
Removes
folderfrom path. -
reset(
) → void - Puts every variable back the way it was when the app started.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String name) → String? -
The value of the variable
name, or null if it isn't set. -
operator []=(
String name, String? value) → void -
Sets the variable
name. Setting it to null removes it.