fromValue static method
Returns the FontType for the given native value.
Throws ArgumentError if value does not correspond to a known entry.
Implementation
static FontType fromValue(int value) => switch (value) {
0 => FONT_DEFAULT,
1 => FONT_BITMAP,
2 => FONT_SDF,
_ => throw ArgumentError('Unknown value for $FontType: $value'),
};