Flutter Tutorial - Dart List Utility Methods: ForEach, Map, Contains, Sort, Reduce, Where, Expand

  Рет қаралды 18,918

HeyFlutter․com

HeyFlutter․com

Күн бұрын

Learn how to use Dart List Utility Methods such as forEach, map, sort, reduce, every, where, take, skip and expand in Flutter.
Click here to Subscribe to Johannes Milke: kzbin.info...
👉 12 Week Flutter Training | heyflutter.com
👉 Flutter Masterclass Courses | heyflutter.com/masterclass
Source Code | github.com/JohannesMilke/list...
My Courses | heyflutter.com
Follow Newsletter | johannesmilke.com/newsletter
SUBSCRIBE HERE
bit.ly/JohannesMilke
SUPPORT & SPONSOR ME
github.com/sponsors/JohannesM...
RESOURCES
Flutter Layout Basics Tutorial: • Flutter Layout Basics:...
Stateful Widget Lifecycle Tutorial: • Flutter Tutorial - Sta...
Hello World Flutter App Tutorial: • Flutter Tutorial - Hel...
Add Custom Fonts Tutorial: • Flutter Tutorial - Add...
Search & Filter In ListView Tutorial: • Flutter Tutorial - Sea...
App Bar Tutorial: • Flutter Tutorial - App...
Search Bar & Search Delegate Tutorial: • Flutter Tutorial - Sea...
TextField Tutorial: • Flutter Tutorial - Tex...
Buttons 2.0 Tutorial: • Flutter Tutorial - New...
Form & TextFormField Tutorial: • Flutter Tutorial - How...
SafeArea VS AppBar Tutorial: • Flutter Tutorial - Saf...
Sortable DataTable Tutorial: • Flutter Tutorial - Sor...
Selectable DataTable Tutorial: • Flutter Tutorial - Sel...
Create PDF Invoice Tutorial: • Flutter Tutorial - Cre...
TIMELINE
0:00 Introduction Dart List Utility Methods
0:32 List ForEach Method
1:26 List Map Method
3:32 List Contains Method
4:32 List Sort Method
5:24 List Reduce Method
6:38 List Fold Method
7:51 List Every Method
9:12 List Any Method
9:54 List Where Method
11:11 List SingleWhere Method
12:19 List Take Method
12:46 List Skip Method
13:09 List.from Method
14:24 List Expand Method
SHARE | SUBSCRIBE | LIKE FOR MORE VIDEOS LIKE THIS
*********
SOCIAL MEDIA: Follow Us :-)
Twitter | / heyflutter_
Linkedin | / heyflutter
LEARN MORE
SOURCE CODE | github.com/JohannesMilke
ARTICLES | / johannesmilke
PLAYLISTS
All Flutter Videos | • Flutter Tutorial - Flu...
Widgets - Flutter | • Flutter Tutorial - Flu...
Plugins - Flutter | • Flutter Tutorial - Flu...
Animations - Flutter | • Flutter Tutorial - Tra...
Designs - Flutter | • Flutter Tutorial - Flu...
Firebase - Flutter | • Flutter Tutorial - Pag...
State Management - Flutter | • Flutter Tutorial - Riv...
CREDITS
Copyright song "Corporate Technology" by scottholmesmusic.com
#Flutter #Tutorial #JohannesMilke
LIKE & SHARE & ACTIVATE THE BELL
Thanks For Watching :-)
bit.ly/JohannesMilke

Пікірлер: 52
@HeyFlutter
@HeyFlutter 2 жыл бұрын
This might help you :) 👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com Source Code: github.com/JohannesMilke/list_utility_example Flutter Layout Basics Tutorial: kzbin.info/www/bejne/r4rbppiKg653oqM Stateful Widget Lifecycle Tutorial: kzbin.info/www/bejne/fH3ChmuFh9tgaLM Hello World Flutter App Tutorial: kzbin.info/www/bejne/i4G2pKt9hrd8sNU Add Custom Fonts Tutorial: kzbin.info/www/bejne/fZeQlKyfjNGge6s Search & Filter In ListView Tutorial: kzbin.info/www/bejne/pXe9eqp4qsl8oJI App Bar Tutorial: kzbin.info/www/bejne/mnmld2d_f7-pfs0 Search Bar & Search Delegate Tutorial: kzbin.info/www/bejne/iJKkdHStq79pZ6c TextField Tutorial: kzbin.info/www/bejne/eWbLe3yBeLmlrM0 Buttons 2.0 Tutorial: kzbin.info/www/bejne/r6XPdX6Ad92KlaM Form & TextFormField Tutorial: kzbin.info/www/bejne/aKPRZIuYd86dr5Y SafeArea VS AppBar Tutorial: kzbin.info/www/bejne/aoCUZ5l-lq-Wbac Sortable DataTable Tutorial: kzbin.info/www/bejne/iXvbc6x-gdhqaM0 Selectable DataTable Tutorial: kzbin.info/www/bejne/founXmOwnNWol80 Create PDF Invoice Tutorial: kzbin.info/www/bejne/sJCYqZ6eetCWa7s
@farhanahmad-bv1mx
@farhanahmad-bv1mx 2 жыл бұрын
Lots of appreciation and love from India🇮🇳
@rv9570
@rv9570 Жыл бұрын
This was the best. Easy to understood method. Please create this kind of videos . It is very easy to understood everything. Other many videos are for advance user and not understandable by learner. I hope you got my point.
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for the idea, @rv9570! 🙂 I have added it to my list of ideas for future videos!
@PaulMcKillop
@PaulMcKillop 3 жыл бұрын
Thanks, Johannes. Straightforward, comprehensive, and logical.
@poisonels8023
@poisonels8023 2 жыл бұрын
You're literally a genius.
@poisonels8023
@poisonels8023 2 жыл бұрын
@@HeyFlutter just never stop doing your flutter video. I'm becoming an expert with them. Firebase, frontend, backend, error fixing, widget explanation, and courses upgrade. I'm sending power to you from France. ❤️🔥✨
@amirraja7628
@amirraja7628 2 жыл бұрын
Love u So Much Brother You Save my Life Always
@BlueSama1
@BlueSama1 3 жыл бұрын
So helpful 🔥
@dreamerslab
@dreamerslab 3 жыл бұрын
Awesome Content. To the point and useful.
@RajA-me9cl
@RajA-me9cl 3 жыл бұрын
Thank you, Johan. I really enjoyed this video.
@gumdum6764
@gumdum6764 3 жыл бұрын
Thanks for the info! Streightforward and helpful
@farhanahmad-bv1mx
@farhanahmad-bv1mx 2 жыл бұрын
It's a very helpful, fantastic explanation vedio
@TrustAllah3212
@TrustAllah3212 3 жыл бұрын
Great Brother, you are the best teacher I ever had.....
@hashankannangara8723
@hashankannangara8723 3 жыл бұрын
very useful video!
@gnrslashsp6501
@gnrslashsp6501 3 жыл бұрын
Man!! Your map explanation was not only the best that I saw but the only one that I understood!!! Finally I know how to use and what is the purpose of .toList() at the end!! thanks God, ops, thanks Johannes!!!!!!!!!!!!! Viva la vida!!!
@oroshix
@oroshix 3 жыл бұрын
This is not the purpose of the .toList() at the end. The reason we need it is that .map() produces an Iterable type (MappedIterable) instead of a List type. So if you want a List type, you have to convert it to a list with .toList(); So if you only need an Iterable (not specifically a List), you don't have to put .toList(), it will produce a new object anyway.
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, OroshiX! 🙂 Yes, you are right, thanks for sharing your knowledge, great explanation! In the end, the Iterable is the parent class of the List class, which supports stepping through the values of a list. At 2:09 I just mentioned that you need to call .toList() since our input was List and therefore our output should be also of the type List and not Iterable.
@yonasmichael8175
@yonasmichael8175 2 жыл бұрын
New to flutter here. I found something ready-made that I could use in my project, but I was having a hard time replicating it because I didn't understand the concept and the basics behind it. You made it crystal clear, and now I don't have to use the ready-made code; instead I can build it from scratch. Thank you so much. Of course, I subscribed and liked your video.
@dr.hriturajrohariya
@dr.hriturajrohariya 3 жыл бұрын
Johannes Milke Rocks...🙏🙏
@OUADAHI
@OUADAHI 2 жыл бұрын
simple and useful, good job
@farhanahmad-bv1mx
@farhanahmad-bv1mx 2 жыл бұрын
Thanks a lot Sir
@muhammedjasir1410
@muhammedjasir1410 3 жыл бұрын
You are very helpful 👍
@ChrisHalden007
@ChrisHalden007 2 жыл бұрын
Great!
@essajamal2488
@essajamal2488 Жыл бұрын
Thank you so much for your video you have saved my from a big problem
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad I could be of help, Thank you Essa Jamal! 😊
@Hitogiri
@Hitogiri 2 жыл бұрын
Thank you
@md.shazidalhasan6726
@md.shazidalhasan6726 2 жыл бұрын
thanks
@Tech1st
@Tech1st 3 жыл бұрын
Very usefull
@bijayaadhikari442
@bijayaadhikari442 3 жыл бұрын
You are better and more efficient teacher. :)
@louisvdmerwe
@louisvdmerwe 3 жыл бұрын
Thank you!
@pierremarais7669
@pierremarais7669 3 жыл бұрын
Hi Louis is jy van RSA?, ek is Pierre
@louisvdmerwe
@louisvdmerwe 3 жыл бұрын
@@pierremarais7669 Inderdaad. Was lanklaas so opgewonde oor iets soos wat ek is oor Flutter.
@rammehar5531
@rammehar5531 2 жыл бұрын
Great tutorial. pls make a video on Navigation for web and mobile. e.g web has sidebar navgation on click again and again every route inserted in stack. this is the big problem in flutter for web
@user-gp1uj9ml5t
@user-gp1uj9ml5t 3 жыл бұрын
cool
@oroshix
@oroshix 3 жыл бұрын
Thanks Johannes for all your videos and their simple explanations. Be careful, there is an error in your map explanation: This is not the purpose of the .toList() at the end. The reason we generally need it is that .map() produces an Iterable type (MappedIterable) instead of a List type. And generally, widgets accept only List type. So if you want a List type, you have to convert it to a list with .toList(). In this case, because you use it with [...iterable], you don't need a .toList() So if you only need an Iterable (not specifically a List), you don't have to put .toList(), it will produce a new object anyway. Moreover, this Iterable is lazy, so we can chain several calls without worry about performance. See here for the documentation: api.dart.dev/stable/2.12.2/dart-core/Iterable/map.html (it always produces a new object)
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, OroshiX! 🙂 Yes, you are right, thanks for sharing your knowledge, great explanation! In the end, the Iterable is the parent class of the List class, which supports stepping through the values of a list. At 2:09 I just mentioned that you need to call .toList() since our input was List and therefore our output should be also of the type List and not Iterable.
@faizc9984
@faizc9984 3 жыл бұрын
👌
@faisalfotoh1909
@faisalfotoh1909 2 жыл бұрын
Spread operator & Null-aware operator on Lists, Maps and Sets in Dart Spread operator & Cascade Operator What is the function of each? And when do we use each? also witch using with Map witch uing with list?
@faizulla5838
@faizulla5838 Жыл бұрын
Bro! How to retern & show on ListView this List "Bike" by/with new "horspover" value ... what you show on 14:33 by expand ???
@qadirkrimov6448
@qadirkrimov6448 3 жыл бұрын
Hello, bro. Do you have videos for testing? If you haven't, can you give me the source, please😊
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, Qadir! 🙂 Nope, I don't have testing videos. Simply read more about it here: flutter.dev/docs/testing
@gustavomenezes2768
@gustavomenezes2768 3 жыл бұрын
Hi Johannes, if I have duplicated objects in the list e.g. if you have two Hondas in your bikes list, how would you compress or remove the duplicate item?
@gustavomenezes2768
@gustavomenezes2768 3 жыл бұрын
@@HeyFlutter many thx
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thanks, Gustavo Menezes! 🙂 You can remove duplicate items from list, like 2 Honda bikes in your case. Simply refer to this solution : stackoverflow.com/a/51446910
@igor10ms
@igor10ms 3 жыл бұрын
how can I replace an item in a list with another item in the same index? (ie delete an item and place another item in the same place as it was)
@igor10ms
@igor10ms 3 жыл бұрын
@@HeyFlutter Thanks, it was a big help! I'm from Brazil and I love your videos
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Hello, Igor miranda souza! Follow this link: stackoverflow.com/questions/63757050/flutter-replacing-an-item-in-a-list, I hope it will solve your problem. Thank You 🙂
@kanatkoimaganbetov8986
@kanatkoimaganbetov8986 3 жыл бұрын
why is there no automatic translation into Russian (
@HeyFlutter
@HeyFlutter 2 жыл бұрын
Thank you, Flutter_kn! 🙂 Yep, this is strange, normally KZbin is generating these captions automatically.
List Method .map() in Dart and Flutter
7:10
Flutter Explained
Рет қаралды 64 М.
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 47 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 17 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 101 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 24 МЛН
Top 10 Flutter Widgets (for Responsive Layouts)
13:17
HeyFlutter․com
Рет қаралды 71 М.
Every Flutter App needs this!
10:15
HeyFlutter․com
Рет қаралды 55 М.
Ever thought why We fail as Flutter Developer?
8:19
HeyFlutter․com
Рет қаралды 8 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 672 М.
👨🏽‍💻 Dart Null Safety (Simple)
14:24
Mitch Koko
Рет қаралды 11 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 544 М.
Flutter:Dart copyWith method
11:35
dbestech
Рет қаралды 4,3 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 172 М.
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН