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