remove method
Removes the property source with the given name, if present.
Returns:
- The removed PropertySource, or
nullif no matching source exists.
Example:
final removed = sources.remove('env');
Implementation
PropertySource? remove(String name) {
return synchronized(_sources, () {
int index = _getIndex(name);
return (index != -1 ? _sources.removeAt(index) : null);
});
}