addLast method

void addLast(
  1. PropertySource source
)

Adds a PropertySource to the end of the list.

Gives it the lowest precedence.

Example:

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

Implementation

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