How do you write for each loop in darts?

There is no way to return a value from forEach . Just use a for loop instead. On top of that, the Dart style guide specifically recommends using a for loop over a forEach unless you can reuse an existing function.

Sizin İçin Seçtik  What is interpolation in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *