containsName method
Returns true if this collection contains a PropertySource whose
name matches name.
Useful for checking whether a configuration layer has been registered.
Example:
final hasEnv = sources.containsName('env');
Implementation
bool containsName(String name) {
for (final propertySource in _sources) {
if (propertySource.getName() == name) {
return true;
}
}
return false;
}