containsName method
Returns true
if this property sources contains a source with the given name
.
Example:
final hasEnv = sources.containsName('env');
Implementation
bool containsName(String name) {
for (final propertySource in _sources) {
if (propertySource.name == name) {
return true;
}
}
return false;
}