getDouble method
- String path
Reads a finite number or parses a finite numeric string.
Implementation
double getDouble(String path) {
final value = _required(path);
final parsed = value is num
? value.toDouble()
: value is String
? double.tryParse(value)
: null;
if (parsed != null && parsed.isFinite) return parsed;
throw const ConfigTypeException('Expected a finite number.');
}