makeLuaRef method

LuaObject? makeLuaRef()

Attempts to return the underlying LuaObject of this to be used as a direct handle or reference. Otherwise null is returned.

Implementation

LuaObject? makeLuaRef() => switch (this) {
  final LuaObject obj => obj,
  _ => null,
};