get abstract method

PropertySource? get(
  1. String name
)

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

PropertySource? get(String name);