addLast method

void addLast(
  1. PropertySource source
)

Inserts the given source at the end of the list, giving it the lowest precedence.

If already present, the existing instance is removed before re-adding it.

Example:

sources.addLast(MapPropertySource('defaults', {...}));

Implementation

void addLast(PropertySource source) {
  return synchronized(_sources, () {
    _removeIfPresent(source);
    _sources.add(source);
  });
}