Flutter – yield inside a callback function

Posted by Jennifer | Updated on

Flutter – yield inside a callback function. Instead of .listen which handles events inside another function you can use await for to handle events inside the outer function.

Separately – you might want to reconsider the pattern when you yield List instances that are still getting populated inside an inner stream callback…


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers