operator [] method
The raw value, or null when unset.
A variable set to the empty string counts as unset. Orchestrators and
CI systems routinely inject empty values for variables that were never
configured, and treating those as a real value is how an app ends up
connecting to "".
Implementation
String? operator [](String name) {
final value = _source[name];
if (value == null || value.trim().isEmpty) {
return null;
}
return value.trim();
}