remove method

PropertySource? remove(
  1. String name
)

Removes the property source with the given name, if present.

Returns:

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