stream method

  1. @override
GenericStream<PropertySource> stream()
override

Returns a GenericStream over all PropertySources in this collection.

This method allows functional-style operations over the property sources. It uses StreamSupport.stream internally to create the stream from the iterable.

Example:

sources.stream()
  .filter((s) => s.name.startsWith('system'))
  .forEach((s) => print(s.name));

Implementation

@override
GenericStream<PropertySource<dynamic>> stream() => StreamSupport.stream(_sources);