addFirst method
Inserts the given source at the beginning of the list, giving it the
highest precedence during property resolution.
If the source is already present, the existing instance is removed before insertion to ensure the new ordering is applied.
Example:
sources.addFirst(MapPropertySource('system', {...}));
Implementation
void addFirst(PropertySource source) {
return synchronized(_sources, () {
_removeIfPresent(source);
_sources.insert(0, source);
});
}