containsName method

bool containsName(
  1. String name
)

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;
}