fromValue static method

GuiTextWrapMode fromValue(
  1. int value
)

Returns the GuiTextWrapMode for the given native value.

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

Implementation

static GuiTextWrapMode fromValue(int value) => switch (value) {
  0 => TEXT_WRAP_NONE,
  1 => TEXT_WRAP_CHAR,
  2 => TEXT_WRAP_WORD,
  _ => throw ArgumentError('Unknown value for $GuiTextWrapMode: $value'),
};