addFirst method

void addFirst(
  1. PropertySource source
)

Adds a PropertySource to the beginning of the list.

Gives it the highest precedence during resolution.

Example:

sources.addFirst(MapPropertySource('system', {...}));

Implementation

void addFirst(PropertySource source) {
  synchronized(_sources, () {
    _removeIfPresent(source);
    _sources.insert(0, source);
  });
}