fromNativeValue static method
- int? value
Gets a possible FontHintingStyle instance from a native value.
Implementation
static FontHintingStyle? fromNativeValue(int? value) {
if (value != null) {
try {
return FontHintingStyle.values.firstWhere(
(element) => element.toNativeValue() == value,
);
} catch (e) {
return null;
}
}
return null;
}