DeclaredVariables class Null safety

An object used to provide access to the values of variables that have been defined on the command line using the -D option.

Clients may not extend, implement or mix-in this class.

Constructors

DeclaredVariables()
Initialize a newly created set of declared variables in which there are no variables.
DeclaredVariables.fromMap(Map<String, String> variableMap)
Initialize a newly created set of declared variables to define variables whose names are the keys in the give variableMap and whose values are the corresponding values from the map.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
variableNames Iterable<String>
Return the names of the variables for which a value has been defined.
read-only

Methods

get(String name) String?
Return the raw string value of the variable with the given name, or null if the variable is not defined.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited