List Method .forEach() in Dart & Flutter
Flutter Explained
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 ⭐️⭐️ DartPad: https://dartpad.dev/1f6d7019fb38072d316c27e02fb70005 GitHub Repository: https://github.com/mt-tadayon/foreach_tutorial
Tools we use to grow our YouTube channel TubeBuddy Review - Manage Your YouTube Channel Easily https://www.tubebuddy.com/flutterexplained
Our current YouTube gear 🎙 Samson Mic: https://amzn.to/324Gpof 📟 Satechi USB-C Adapter: https://amzn.to/3kUdQ5M 💻 MacBook Pro: https://amzn.to/3iQ9MBx 📹 Lumix FZ1000: https://amzn.to/3g7tW8D
⭐️⭐️Follow us ⭐️⭐️ Twitter Mahtab - https://twitter.com/mahtab_dev GitHub Mahtab - https://github.com/mt-tadayon
Twitter Max - https://twitter.com/flutter_exp Github Max - https://github.com/md-weber
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. https://flutterexplained.live/
Amazon Affiliate Link - You buy for the same price and I get a small amount of it. This leads to an amazing Flutter book that I can recommend to every beginner of flutter https://amzn.to/2uOJXON ... https://www.youtube.com/watch?v=af3dqyDiYdg
37704796 Bytes