selectAsInt method
Returns the int 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
int? selectAsInt(String selector) {
final dynamic value = traverse(selector);
if (value is! int) {
throw SettingsYamlException('Expected a int at $selector. Found $value');
}
return value;
}