getString method

String getString(
  1. String path
)

Reads a string without coercing other value types.

Implementation

String getString(String path) {
  final value = _required(path);
  if (value is String) return value;
  throw const ConfigTypeException('Expected a string.');
}