call method
Attempts to execute the value closure if isFunction is true.
Otherwise this throws an error.
Implementation
Object? call() {
uses++;
return switch (skipSemanitcs) {
true => () {
return LuaObject.noSemantics('call_ret');
},
false => switch (value) {
final Function func => func(),
_ => throw 'Not a function "$id".',
},
};
}