child method
Implementation
ConfigReader? child(String key) {
final value = map[key];
if (value == null) {
return null;
}
if (value is! YamlMap) {
throw valueError(key, 'expected a mapping, found ${describe(value)}.');
}
return ConfigReader(value, file: file, path: [...path, key]);
}