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 Map<String, dynamic>? fontFeature(FontFeature? feature) {
if (feature == null) return null;
return NotNullMap.from(
{'feature': feature.feature, 'value': feature.value});
}