Hi Hodrigo
I am using Askless for both the Flutter and Node.js sides. I noticed that when I use async for the output property like this:
toOutput: async (entities) => { const models = await GdvModel.fromEntityList(entities); const results = await Promise.all(models.map((model) => model.output())); return results;}
After that, I tried printing the results variable, and the Node.js server received the expected results, but on the Flutter side, I received an empty array. I want to ask you if async can be used with toOutput. If it can be used, how should I handle it?
Hi Hodrigo
I am using Askless for both the Flutter and Node.js sides. I noticed that when I use async for the output property like this:
toOutput: async (entities) => { const models = await GdvModel.fromEntityList(entities); const results = await Promise.all(models.map((model) => model.output())); return results;}After that, I tried printing the results variable, and the Node.js server received the expected results, but on the Flutter side, I received an empty array. I want to ask you if async can be used with toOutput. If it can be used, how should I handle it?