Top 16 Dart Tips and Tricks Every Flutter Developer Should Know

  Рет қаралды 59,275

Andrea Bizzotto

Andrea Bizzotto

Күн бұрын

Written tutorial here: 👇👇
codewithandrea.com/videos/top...
In this tutorial I share 16 Dart top tips that will improve your coding style as a Flutter developer.
You can use them to write more concise and effective code, and make the most of the Dart language.
CONTENTS
00:00 - Intro
00:22 - 1. Dart supports string multiplication.
01:03 - 2. Use Future.wait to execute multiple Futures concurrently
01:32 - 3. Dart callable classes
01:57 - 4. How to invoke nullable callbacks
02:33 - 5. Using anonymous functions and functions as arguments
03:36 - 6. You can use collection-if and spreads with lists, sets AND maps
04:06 - 7. Iterating through a map in a null-safe manner?
04:36 - 8. Use named constructors and initializer lists for more ergonomic APIs.
05:16 - 9. Getters and setters
05:51 - 10. Use underscores for unused function arguments
06:16 - 11. Singletons and private constructors
06:58 - 12. Need a collection of unique items? Use a Set rather than a List.
07:42 - 13. How to use try, on, catch, rethrow, finally
08:27 - 14. Common Future constructors
09:05 - 15. Common Stream constructors
09:57 - 16. Sync and Async Generators
10:46 - Wrap Up
Complete Dart Course (with discounted price): nnbd.me/dart
Join my FREE email course to become a Flutter expert with the best resources, at your own pace: codewithandrea.com/newsletter/
Happy coding!

Пікірлер: 55
@ethan-youtubetips4325
@ethan-youtubetips4325 3 жыл бұрын
You got me watching the whole video. Thumbs up 👍
@RetroPortalStudio
@RetroPortalStudio 3 жыл бұрын
This is a gem 💙💎
@CodeWithAndrea
@CodeWithAndrea 3 жыл бұрын
Thanks a lot. I’m a fan of your channel, so it’s great to hear this.
@skarrin6207
@skarrin6207 3 жыл бұрын
Oh hi paras
@rayanfernandes2631
@rayanfernandes2631 3 жыл бұрын
Woah man that was pretty good and consise demonstration of dart ... I learnt a lot of good stuff today!
@joranmulderij
@joranmulderij 2 жыл бұрын
This is amazing! They are all very useful. 6 of them where at least partially new to me.
@workflop4117
@workflop4117 3 жыл бұрын
Thanks for sharing Andrea
@DenzilFerreira
@DenzilFerreira 3 жыл бұрын
This is a masterpiece!
@jjsebastianfuertes
@jjsebastianfuertes 3 жыл бұрын
Great content! 💯
@nicolasdupere
@nicolasdupere 3 жыл бұрын
So, so good! Thanks!
@denzell5070
@denzell5070 3 жыл бұрын
Thank you. I'm definitely purchasing the course.
@yogenp
@yogenp 3 жыл бұрын
Love this. Awesome content.
@Pedro5antos_
@Pedro5antos_ 2 жыл бұрын
Thanks for sharing!
@mrunfunny
@mrunfunny 3 жыл бұрын
Great Video. Keep it up Andrea.
@alexey5174
@alexey5174 3 жыл бұрын
Useful, thanks!
@bm830810
@bm830810 3 жыл бұрын
great tips, many thanks
@raul286162
@raul286162 3 жыл бұрын
This information is gold ❣️
@Fanaro
@Fanaro 3 жыл бұрын
The chaptering really helps. 👍
@vibinu7589
@vibinu7589 3 жыл бұрын
Best flutter channel in KZbin!🤩
@delikinVlogs
@delikinVlogs 3 жыл бұрын
GOLD!!! THIS IS GOLD!!!
@yearsystem882
@yearsystem882 3 жыл бұрын
thanks for the video brother :)
@MisterNorthernCanuck
@MisterNorthernCanuck 3 жыл бұрын
Absolute gold.
@ianpaul9262
@ianpaul9262 3 жыл бұрын
Very informative video!
@yottatube
@yottatube 3 жыл бұрын
Excellent! 👍
@sureshchakma1145
@sureshchakma1145 3 жыл бұрын
I bought your dart course from Udemy... and i am practicing... thanks you
@abdelouahedmedjoudja2163
@abdelouahedmedjoudja2163 3 жыл бұрын
Great video thanks
@mao_1992
@mao_1992 2 жыл бұрын
Awesome!
@rizalhadiyansah
@rizalhadiyansah 3 жыл бұрын
Coooool!!!! Thanks!!!'❤
@cromuelbarut9859
@cromuelbarut9859 Ай бұрын
I learned a lot
@mr.thorcoder150
@mr.thorcoder150 3 жыл бұрын
Professional 🔥
@ahteramkhattak2243
@ahteramkhattak2243 2 жыл бұрын
nice ... very informative
@shakilmakram6923
@shakilmakram6923 3 жыл бұрын
thanks for the tips
@johncerpa3782
@johncerpa3782 3 жыл бұрын
Great tips
@fahadkhatri4318
@fahadkhatri4318 3 жыл бұрын
Excellent 👍 👍 👍
@devsbuddy
@devsbuddy 2 жыл бұрын
What a coincidence I just had to show data from the map in UI and I was spitting each entry manually suddenly map iteration part comes and I used it instead Thank You, Creator.
@whilelive
@whilelive 3 жыл бұрын
Amazing
@ahmedadnan5875
@ahmedadnan5875 3 жыл бұрын
awesome
@guilhermeaguiar2743
@guilhermeaguiar2743 3 жыл бұрын
Sou do brasil nao sei falar ingles, mas meu parabens. Deu para entender algumas coisas
@MikeNugget
@MikeNugget 3 жыл бұрын
Nice video! What shortcut do you use in VS Code to quick import files from the same directory?
@carlosfvp
@carlosfvp 2 жыл бұрын
I guess he is just pressing the Undo shortcut to show the code he is explaining.
@riteshkumartiwari153
@riteshkumartiwari153 Жыл бұрын
great
@_chappie_
@_chappie_ 3 жыл бұрын
I knew about some of these and I felt less newbie lop
@mehmetedex
@mehmetedex 3 жыл бұрын
cool
@hemanth6951
@hemanth6951 3 жыл бұрын
1:50 same thing in python __call__ method,👍
@techhublearn1
@techhublearn1 3 жыл бұрын
Hi Andrea sir can you suggest some interesting college project using flutter.
@void4904
@void4904 3 жыл бұрын
Like first 💓
@3mro_coding
@3mro_coding 3 жыл бұрын
Did you show ur localhost as https how? Adding self signed ssl? To the vhost?
@LinJheYi
@LinJheYi 3 жыл бұрын
Unfortunately Tip #2 is wrong, Future.wait didn't run Futures concurrently, it just run them sequentially in current isolate/event loop, and give you all result after every Future is finished. If you want real concurrency, you should spawn new isolates. For example: void main() async { await Future.wait([ Future(() { for (int i = 0; i < 5; i++) { print(i); } }), Future(() { for (int i = 0; i < 5; i++) { print(i); } }), Future(() { for (int i = 0; i < 5; i++) { print(i); } }), ]); } It'll print 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5, instead of 1,1,1,2,2,2....
@marflage
@marflage 3 жыл бұрын
Thanks for informing!
@theradinion6317
@theradinion6317 3 жыл бұрын
thought this was about the sport
@floriansenf6586
@floriansenf6586 3 жыл бұрын
Haha
@getsellwebshop7482
@getsellwebshop7482 Жыл бұрын
plz build a little vpn plz
@malaniniks
@malaniniks 2 жыл бұрын
.
@pradeepkumarreddykondreddy7048
@pradeepkumarreddykondreddy7048 2 жыл бұрын
It was too fast. I could not understand few of them.
@antonyaz3506
@antonyaz3506 8 ай бұрын
One year of my experience in 12 minutes
How to Create Dart Packages for Your Flutter Apps
13:46
Andrea Bizzotto
Рет қаралды 34 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,7 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 64 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 9 МЛН
35 Flutter Tips That Will Change Your Life
10:53
Flutter Mapp
Рет қаралды 298 М.
Top 70 Flutter Tips, Widgets & Packages
16:22
Flutter Mapp
Рет қаралды 126 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 169 М.
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 544 М.
10 Flutter Tips to Be More Productive
13:25
Robert Brunhage
Рет қаралды 65 М.
Elevate your Dart Programming Skills - Dart Tips & Tricks
11:31
Hussain Mustafa
Рет қаралды 872
Best 30 Flutter Widgets, Packages & Tips
5:11
Flutter Mapp
Рет қаралды 119 М.
My 10 Most Favorite Flutter Widgets
11:48
Robert Brunhage
Рет қаралды 39 М.
Flutter State Management Basics and Useful Resources
4:39
Andrea Bizzotto
Рет қаралды 12 М.
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 9 МЛН
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 961 М.