leaf<T> method
The single value at path, parsed by parse; null when it is not
set. Throws a ThemePropertyException saying expected when parse
gives null or the property is a map.
Implementation
T? leaf<T>(String path, T? Function(String raw) parse, String expected) =>
_leaf(path, parse, expected);