fromValue static method

GuiTextAlignmentVertical fromValue(
  1. int value
)

Returns the GuiTextAlignmentVertical for the given native value.

Throws ArgumentError if value does not correspond to a known entry.

Implementation

static GuiTextAlignmentVertical fromValue(int value) => switch (value) {
  0 => TEXT_ALIGN_TOP,
  1 => TEXT_ALIGN_MIDDLE,
  2 => TEXT_ALIGN_BOTTOM,
  _ => throw ArgumentError('Unknown value for $GuiTextAlignmentVertical: $value'),
};