In this series, we will learn more about different list methods in #Dart and see how we can use them in #Flutter. In this episode we have a closer look at .forEach() method in different list types and see how we can use this method to change the background color of a ListTile in a flutter application.
00:00 – Introduction
00:23 – Example one: forEach method explanation on a list of String
01:55 – Example two: forEach method on list of integer
02:64 – Example three: forEach method on list of object
03:53 – Overview over the boilerplate code
05:20 – forEach method in onPressed method
06:25 – Outro
⭐️⭐️Helpful Ressources ⭐️⭐️
GitHub Repository: https://github.com/mt-tadayon/foreach_tutorial
Tools we use to grow our YouTube channel
TubeBuddy Review – Manage Your YouTube Channel Easily
Homepage – https://myracledesign.de/blog
⭐️⭐️ Support ⭐️⭐️
If you read this so far, thank you once more. If you like to support us, here are some links that could help us a lot.
Donation via Streamlabs – You are free to donate us a small amount, so we can keep up our work.