fontFeature static method
Returns a FontFeature from the specified map.
The feature
key is used as the font feature name (defaulting to the
probably-useless private value "NONE"), and the value
key is used as the
value (defaulting to 1, which typically means "enabled").
As this never returns null, it is possible to use it with list.
Implementation
static FontFeature fontFeature(DataSource source, List<Object> key) {
return FontFeature(source.v<String>([...key, 'feature']) ?? 'NONE', source.v<int>([...key, 'value']) ?? 1);
}