LuauType enum

Mirrors Luau's C lua_Type enum from VM/include/lua.h. Values must match what lua_type() and friends return.

Inheritance
Available extensions

Values

nil → const LuauType
const LuauType(0)
boolean → const LuauType
const LuauType(1)
lightUserdata → const LuauType
const LuauType(2)
number → const LuauType
const LuauType(3)
integer → const LuauType
const LuauType(4)
vector → const LuauType
const LuauType(5)
string → const LuauType
const LuauType(6)
table → const LuauType
const LuauType(7)
function → const LuauType
const LuauType(8)
userdata → const LuauType
const LuauType(9)
thread → const LuauType
const LuauType(10)
buffer → const LuauType
const LuauType(11)
classObj → const LuauType
const LuauType(12)
classInst → const LuauType
const LuauType(13)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

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

Constants

values → const List<LuauType>
A constant List of the values in this enum, in order of their declaration.