fromValue static method
Returns the GuiDefaultProperty for the given native value.
Throws ArgumentError if value does not correspond to a known entry.
Implementation
static GuiDefaultProperty fromValue(int value) => switch (value) {
16 => TEXT_SIZE,
17 => TEXT_SPACING,
18 => LINE_COLOR,
19 => BACKGROUND_COLOR,
20 => TEXT_LINE_SPACING,
21 => TEXT_ALIGNMENT_VERTICAL,
22 => TEXT_WRAP_MODE,
_ => throw ArgumentError('Unknown value for $GuiDefaultProperty: $value'),
};