EnvVar class
EnvVar represents an environment variable present in a Container.
Constructors
- EnvVar({required String name, String? value, EnvVarSource? valueFrom})
-
Default constructor.
const
-
EnvVar.fromJson(Map<
String, dynamic> json) -
Creates a EnvVar from JSON data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Name of the environment variable. Must be a C_IDENTIFIER.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String?
-
Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".
final
- valueFrom → EnvVarSource?
-
Source for the environment variable's value. Cannot be used if value is not empty.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a EnvVar instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited