describe function
A short description of a YAML value's type for error messages.
Implementation
String describe(Object? value) => switch (value) {
null => 'nothing',
String() => 'text',
bool() => 'true or false',
int() || double() => 'a number',
YamlList() || List() => 'a list',
YamlMap() || Map() => 'a mapping',
_ => 'an unsupported value',
};