LuaObject.variable constructor
Constructs a lua object with id for its variable name
in scope with some initial value.
Implementation
LuaObject.variable(this.id, Object? value) : super() {
if (value is LuaFieldsMap) {
_fields = value;
} else if (value is LuaObject) {
this.value = value.deref();
if (value.isFunc) {
funcDef = value.funcDef;
}
} else {
this.value = value;
}
}