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