No video

Collections in Dart - Learn About Lists, Maps, Sets and the Collection Package in Dart

  Рет қаралды 9,336

Vandad Nahavandipoor

Vandad Nahavandipoor

Күн бұрын

Пікірлер: 32
@SaadullahKhan-og3eb
@SaadullahKhan-og3eb 2 ай бұрын
I have watched so many courses but this course is a super game changer. Thank you sir for providing us great course
@nickcfc1
@nickcfc1 9 ай бұрын
Congratulations, this is a course that truly teaches and not empty tutorials, I'm learning a lot.
@appdevelopment4741
@appdevelopment4741 Жыл бұрын
With every dart lecture you are winning my heart. Thank you Sir for making videos in great details❤❤❤
@learnandearn1851
@learnandearn1851 Жыл бұрын
This is life changing course. Thank you sir for providing us great content🤗.
@VandadNP
@VandadNP Жыл бұрын
It's my pleasure 🤗
@filipb6973
@filipb6973 Жыл бұрын
Great tutorial for Dart collections. I'm at the half of the video and already loving it - the details, examples, straight to the point approach,...
@wilsonchinedu813
@wilsonchinedu813 Жыл бұрын
Was able to complete this course today. I must say, I have learned a whole new thing about collections. This is really an eye-opener course. Thank you so much Mr. Vandad.
@benmatt8940
@benmatt8940 Жыл бұрын
High quality as always!! Thanks!!
@jasvindersingh2791
@jasvindersingh2791 Жыл бұрын
if this is crash course then i can't imagine the length of full course.... thank you much sir such a great video.
@houssembousmaha3615
@houssembousmaha3615 Жыл бұрын
Sir, you are a legend!
@VandadNP
@VandadNP Жыл бұрын
Wow, thanks! and you too 🚀
@StudentPro-io8vi
@StudentPro-io8vi Жыл бұрын
Thank you Vandad!
@Nirvairsingh-vv9ly
@Nirvairsingh-vv9ly Жыл бұрын
sir you are Great
@VandadNP
@VandadNP Жыл бұрын
Thank you and you too 😊
@viktorlovgren5144
@viktorlovgren5144 Жыл бұрын
@VandadNP when you add the getter to protect the _siblings list in the Person class, returning UnmodifiableListView, doesn't it just stop the outside from modifying the list when accessing via .siblings? It can still modify the actual list in _siblings just as before? It seems it's still as vulnerable to edits from the outside as before. Or am I missing something?
@houssainel101
@houssainel101 Жыл бұрын
Keep going bro
@miracle_blue
@miracle_blue Жыл бұрын
thanks
@omoyajowotemidayo5382
@omoyajowotemidayo5382 Жыл бұрын
Wish I could like this video more than once
@prabinlamsal74
@prabinlamsal74 Жыл бұрын
just like it 3 times bro.
@ksf3823
@ksf3823 Жыл бұрын
I fuckin love you man ! Thanks
@red.rocket
@red.rocket Жыл бұрын
The spread operator is great but what about more complicated things like lists of maps? How to copy those? Is the spread operator still usefil?
@VandadNP
@VandadNP Жыл бұрын
To deep copy a list of maps you can first map the list, and then for every map in the list, create a copy of it using Map.from(), like this => yourList.map((map) => Map.from(map)).toList();
@red.rocket
@red.rocket Жыл бұрын
​ @VandadNP Thanks. So the spread operator has use in only simple things then. I'm learning Dart for a month and I was shocked that there are no option to pass a variable to a function by reference in order to modify the original object and when I've just come to terms with this fact I noticed (after searching for a bug in my code for several minutes) that lists and maps break out of the schema and they are not passed as copies but references. Unfortunately there's no deep copy option in the language so I had been using json.decode.json.encode(list)) to serialize and deep copy this way, but the map seems to be working more elegantly. Thanks again.
@user-xo6xt3nh8d
@user-xo6xt3nh8d 11 ай бұрын
print('---add to dictionary----'); const food = { 'name': 'hello', 'age': 28, }; final result = {...food}.addAll({'other': 9}); print(result); //This expression has a type of 'void' so its value can't be used...why it gives me error although I followed the same code: at 1:44:00
@Omarhi51llarious4tsxdl1l
@Omarhi51llarious4tsxdl1l Жыл бұрын
How to show the error message on the right side within line???? All error and suggestion are on the bottom
@madelcamp
@madelcamp Жыл бұрын
In 1:47:08 I fixed the code like this: void main(List args) { final string = 'abracadabra'; var result = { for (final char in string.split('')) 'abc'.contains(char) ? null : char }..removeAll([null]); var result2 = result.toList(); print(result2); } Unfortunatelly, I cound't find a way to apply the rest of chaining methods. It only applies removeAll, but not the rest. And it also forces me to create a "result2" variable, I coudn't even mutate the same "result" variable. I wonder if this is a bug from the dart language that should be corrected by the google team, or wether there is another way.
@pyroraptor07
@pyroraptor07 Жыл бұрын
I was able to get it to work this way: final string = 'abracadabra'; var allExceptAbc = { for (final char in string.split('')) 'abc'.contains(char) ? null : char }.whereType().toSet(); print(allExceptAbc);
@mdataullah5489
@mdataullah5489 Жыл бұрын
simply do this: final string = 'abracadabra'; final allExceptAbc = { for (final char in string.split('')) if (!'abc'.contains(char)) char }; print(allExceptAbc);
@d-apps2699
@d-apps2699 Жыл бұрын
One thing that I didn't understand was: When to use List and when to use Iterable?
@mikolajdebowski3271
@mikolajdebowski3271 Жыл бұрын
I want my bag of candies that I said yes too 😜
@edidiongbassey919
@edidiongbassey919 10 ай бұрын
Mature dart tutorial
@MrHellkaizer
@MrHellkaizer Жыл бұрын
first of all thank you for your work and I hope you lead a blessed life. I have a question on the codeActionOnSave, so i added the entries on json user setting but i get the error "end of the file expected when I place them outside {} of the default entries, but when I place them inside the default entries nothing happens. what did I do wrong and ty. "[dart]": { "editor.codeActionsOnSave": { "quickFix.add.required": true, "quickFix.add.required.multi": true, "quickFix.create.constructorForFinalFields": true, "quickFix.create.constructorForFinalFields.multi": true, "quickFix.remove.thisExpression:": true, "quickFix.remove.thisExpression.multi": true }, "editor.formatOnSave": true, "editor.formatOnType": true }
Enumerations in Dart - Learn About Enums and Enhanced Enums in Dart
47:02
Vandad Nahavandipoor
Рет қаралды 6 М.
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 23 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 18 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 97 МЛН
Control Flow in Dart - Learn About If, Else, Do, While and Switch Statements in Dart
1:06:01
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 354 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 172 М.
The Worst Programming Language Ever - Mark Rendle - NDC Oslo 2021
1:00:41
NDC Conferences
Рет қаралды 1,3 МЛН
When, why, and how to multithread in Flutter
15:10
Flutter
Рет қаралды 63 М.
Generics in Dart - Learn How to Write Highly Reusable Code with Generics in Dart
1:07:39
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН