getSection method

ConfigValues getSection(
  1. String path
)

Reads a required object section as another immutable view.

Implementation

ConfigValues getSection(String path) {
  final value = _required(path);
  if (value is Map<String, Object?>) return ConfigValues(value);
  throw const ConfigTypeException('Expected an object section.');
}