List Method .reduce() in Dart and 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 the #reduce method in different list types in Dart. Additionally, we will see how we can use this method to calculate the total expenses in a flutter application and show it in a DataTable. Also, we will calculate the rest budget with the fold method in our flutter application.
00:00 - Introduction 00:34 - Example one: reduce method explanation on a list of integer 01:40 - Example two: reduce method on the list of String 02:15 - Example three: reduce method on a list of object 03:20 - Overview over the boilerplate code 04:00 - Tasks explanation 04:22 - Reduce method to calculate the total expenses in the Flutter app 06:00 - Fold method to calculate the rest budget in the Flutter app 07:00 - Outro
⭐️⭐️Helpful Ressources ⭐️⭐️ DartPad: https://dartpad.dev/ba2544c47094780e01fe544d67bb3bdb GitHub Repository: https://github.com/mt-tadayon/reduce_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://flutter-explained.org/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 BuyMeACoffee - https://www.buymeacoffee.com/flutterexp
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=wngN0vLYwlw
48338615 Bytes