fromNative static method

LuauType fromNative(
  1. int value
)

Maps a native Luau type tag to its Dart enum. Out-of-range values (including LUA_TNONE = -1) fall back to LuauType.nil.

Implementation

static LuauType fromNative(int value) => _byValue[value] ?? LuauType.nil;