LuaOpaqueValue class

Opaque values for types that can't be converted to Dart values.

These do not represent the underlying value and are only valid for as long as the value remains in the stack. You should not store these values longer than that.

This is helpful for functions which want to take and return references to values that cannot be referenced from dart, i.e. tables and functions.

Theoretically you could store actual references to these objects using lua_topointer and peeking at the internal state of Fengari objects, but this is undefined behavior and will break on a reference Lua implementation.

Constructors

LuaOpaqueValue(int type, String name, int index)

Properties

hashCode int
The hash code for this object.
no setteroverride
index int
getter/setter pair
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int
getter/setter pair

Methods

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

Operators

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