List Method .reduce() in Dart and Flutter

  Рет қаралды 6,423

Flutter Explained

Flutter Explained

Күн бұрын

Пікірлер: 23
@azackmatoff2570
@azackmatoff2570 3 жыл бұрын
You have the best tutorials for flutter and dart! Awesome! Thanks a lot
@FlutterExplained
@FlutterExplained 3 жыл бұрын
You are very welcome :) I hope it helps you.
@zimani7g473
@zimani7g473 3 жыл бұрын
Thanks a lot
@fluttercourseshok1270
@fluttercourseshok1270 2 жыл бұрын
رائع ومبدع لايك كبير
@vatan2578
@vatan2578 4 жыл бұрын
Thank you very much for your work. Your expression is excellent. I wish you and your loved ones health and happiness.
@FlutterExplained
@FlutterExplained 4 жыл бұрын
Thanks a lot for your kind words!
@usama_khalid
@usama_khalid 2 жыл бұрын
This video is extremely helpful. Thank you
@FlutterExplained
@FlutterExplained 2 жыл бұрын
You are most welcome :)
@oxglowinc.1614
@oxglowinc.1614 4 жыл бұрын
Good job! Clearly explained.
@FlutterExplained
@FlutterExplained 4 жыл бұрын
Thanks for your feedback! :)
@rv9570
@rv9570 2 жыл бұрын
Please create a series on Map like this list tutorial. Thanks for great explanation.
@longtimedeveloper6498
@longtimedeveloper6498 3 жыл бұрын
Very well done, thank you!
@FlutterExplained
@FlutterExplained 3 жыл бұрын
You are most welcome :)
@h3w45
@h3w45 4 жыл бұрын
Well done.
@vinayreddypulagam
@vinayreddypulagam 4 жыл бұрын
thank q
@athulkrishnadiyil1735
@athulkrishnadiyil1735 4 жыл бұрын
nicely explained....
@FlutterExplained
@FlutterExplained 4 жыл бұрын
Thank you :)
@LiranMansur
@LiranMansur 4 жыл бұрын
These vids are gold 🥇 Question: Is there a method to group list\map by value? i.e grouping the list below by brand... [Car(brand: 'BMW', color: Red), Car(brand: 'BMW', color: Black), Car(brand: 'Mercedes', color: White)]
@billyjoseph3540
@billyjoseph3540 4 жыл бұрын
I'd go with myList.map((e) => e.brand).toSet().toList();
@FlutterExplained
@FlutterExplained 4 жыл бұрын
If you want to get a list of different brands from myList without repeating the same brands, this is exactly the right solution. And if you want to create a list of all brands, you don't need toSet(). I create a Gist for that and hope it can help you :) dartpad.dev/f9fcc3cd62b67e7304a7b6a5589f416f
@LiranMansur
@LiranMansur 4 жыл бұрын
@@FlutterExplained Thanks for the thorough reply you are awesome ❤ I'm sorry but I think my example was misleading. Let's say I have a shopping list: [ Cart(date: 19/8/2020, item: shirt, price: 20), Cart(date: 19/8/2020, item: glasses, price: 10), Cart(date: 18/8/2020, item: pants, price: 30), Cart(date: 18/8/2020, item: shirt, price: 15), Cart(date: 17/8/2020, item: hat, price: 5) ] My question is how to I group the list by date to get the total cart amount for a single date? Result: 19/8/2020 > total price: 30 (2 items) 18/8/2020 > total price: 45 (2 items) 17/8/2020 > total price: 5 (1 item)
@FlutterExplained
@FlutterExplained 4 жыл бұрын
No worries, it's fine. I create a new DartPad with the solution for you. I hope it can help you. :) DartPad Link: dartpad.dev/9f6d129ef8b35551575254fb65830cf5 BTW for practicing dart algorithms, I can highly recommend you the exercism. This helped me a lot. exercism.io/my/tracks/dart
@nurizzatimauladabdulrahim4634
@nurizzatimauladabdulrahim4634 3 жыл бұрын
hi, I've watched your video kzbin.info/www/bejne/rZ_Kf2Osgb6qotk and there is something that I don't understand. I have an assignment for dart that I need to do subtraction. input: 21, 23, 12, 45, 39, 40. I was asked to split the input into a list by using .split() function. how do I do the subtraction for all the inputs in the list? I couldn't find any ways possible yet. thank you! :)
List Method .sort() in Dart and Flutter
9:54
Flutter Explained
Рет қаралды 14 М.
List Method shuffle and add in Dart and Flutter
5:28
Flutter Explained
Рет қаралды 9 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,3 МЛН
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 48 МЛН
Riverpod an easier approach to access Provider - Flutter State Management
15:47
List Method .fold() in Dart and Flutter
8:38
Flutter Explained
Рет қаралды 13 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 551 М.
How to get started with Flutter - Flutter Learning Path
7:32
Flutter Explained
Рет қаралды 15 М.
List Method .forEach() in Dart & Flutter
6:51
Flutter Explained
Рет қаралды 17 М.