getChildrenImplementation method
Gets the immediate children sub-sections of configuration root based on key.
Implementation
Iterable<ConfigurationSection> getChildrenImplementation(String? path) =>
providers
.fold<Iterable<String>>(
const Iterable<String>.empty(),
(Iterable<String> seed, ConfigurationProvider source) =>
source.getChildKeys(seed, path),
)
.toSet()
.map(
(key) => getSection(
path == null ? key : ConfigurationPath.combine([path, key]),
),
);