get method
Returns the PropertySource with the given name, or null
if not found.
This method performs a lookup for a source by its name (as returned by
PropertySource.getName()
).
Example:
final source = sources.get('applicationConfig');
if (source != null) {
print(source.getProperty('app.name'));
}
name
: the name of the property source to find- Returns: the PropertySource if present, otherwise
null
Implementation
@override
PropertySource? get(String name) => _sources.find((s) => s.name.equals(name));