toLua method

LuaObject toLua(
  1. String id
)

A new LuaObject.variable instance is returned whose variable name in scope is id.

Implementation

LuaObject toLua(String id) => switch (this) {
  final LuaFieldsMap m => LuaObject.table(id, m),
  _ => LuaObject.variable(id, this),
};