popStrings method

List<String> popStrings(
  1. int n
)

Same as LuaState.popString but for multiple values.

This returns values in the order they were pushed.

Implementation

List<String> popStrings(int n) {
  var o = List<String>.generate(n, (i) {
    var lstring = lua_tostring(L, i - n);
    return lstring == null ? "Unknown" : to_jsstring(lstring);
  });
  pop(n);
  return o;
}