selectAsDouble method
Returns the double attribute at selector
See traverse for details on the syntax of selector
Throws a SettingsYamlException if
an error occurs reading the selector
Throws a PathNotFoundException exception
If the selector doesn't lead to a valid
location.
Implementation
double? selectAsDouble(String selector) {
final dynamic value = traverse(selector);
if (value is! double) {
throw SettingsYamlException(
'Expected a double at $selector. Found $value');
}
return value;
}