getPropertyNames method
Returns a list of the names of all PropertySources in this collection, in iteration order.
This is a convenience method for quickly inspecting or debugging the currently registered property sources without needing to traverse them.
Example
final names = sources.getPropertyNames();
print(names);
// → ['systemEnvironment', 'systemProperties', 'applicationInfo', ...]
The returned list is a snapshot and does not update if the underlying collection changes.
Implementation
List<String> getPropertyNames() => map((p) => p.getName()).toList();