List Method .reduce() in Dart and Flutter
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-tad
βhttps://tube.tchncs.de/w/cQPHpzBoFwm32SH3ukpxcn