require method
Returns the value of the given key
or throws MissingYamlField.
Implementation
dynamic require(String key, {required String fileName}) {
final value = this[key];
if (value == null) {
throw MissingYamlField(field: key, file: fileName);
}
return value;
}