Closed guzishiwo closed 2 years ago
You can return an object that contains the functions and get from map
final js = """
({
a: function () {},
b: function () {},
c: function () {},
})
""";
final ret = engine.evaluate(js);
ret["a"].invoke([])
Can support loading js with multiple functions and then calling the specified function name?