Тёмный

Mixins in Dart - Understand Dart & Flutter Fundamentals (Tutorial) 

Reso Coder
Подписаться 113 тыс.
Просмотров 64 тыс.
50% 1

📗 Learn from the written tutorial 👇👇
resocoder.com/mixins-dart
In classic object-oriented programming, you have regular classes, abstract classes, and interfaces. Of course, Dart has its own take on interfaces, but that's for another tutorial... Somewhere in the shadows though is lurking another kind of an animal. Mixins! What are they for and when should you use them? Let's find out.
Go to the website for more information, code examples, and articles:
● resocoder.com
Follow me on social media:
● / resocoder
● / resocoder
● / resocoder
● gab.ai/resocoder

Опубликовано:

 

4 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@osaaluko
@osaaluko 2 года назад
Thanks man. Your flutter tutorials are enjoyably clear.
@thanusan
@thanusan 4 года назад
You have a great knack for explaining tricky concepts in a simple way - great video
@juantaverasiv741
@juantaverasiv741 5 лет назад
I'm so glad I came across your channel. Very high quality videos, which have been very useful in developing my current Flutter app
@FilledStacks
@FilledStacks 5 лет назад
Nice one! Between the two of us we'll probably cover everything in Flutter for developers to build production ready apps 😁
@ResoCoder
@ResoCoder 5 лет назад
I definitely hope so!
@nanisamireddy
@nanisamireddy 3 года назад
You two are awesome... I learnt 0 to building apps in flutter from both you guys....😁😁
@FilledStacks
@FilledStacks 3 года назад
@@nanisamireddy Doooooooooope!
@nanisamireddy
@nanisamireddy 3 года назад
@@FilledStacks 😁😉
@guilhermealecrim1135
@guilhermealecrim1135 Год назад
Great content! Really helped me grasp the concept of Mixins. The examples were perfect. Keep up the good work!
@pacifio
@pacifio 5 лет назад
I love these dart basics videos ... please do more bruv
@ResoCoder
@ResoCoder 5 лет назад
I will!
@gmc254quads6
@gmc254quads6 5 лет назад
This is nice. For self taught beginner programmers like me who last coded in pascal an eon ago, these videos do come in handy. Please do more of these if you can. The community salutes you.
@venkateshk2552
@venkateshk2552 4 года назад
You have a unique talent for keeping the right pace. The quality of content is amazing. I am looking forward to learning more about Dart and Flutter in the coming days and weeks. I am sure your content will be of great help to me in my journey. Thank you very much.
@thecodepapaya
@thecodepapaya 4 года назад
One of the best explanation for mixins!!
@alnaskabeer1361
@alnaskabeer1361 2 года назад
You couldnt have a chose a better example. Really loved the explanation.
@henrytan5707
@henrytan5707 Год назад
I like this teacher, very patient, never tired of explanation.
@mosth8ed
@mosth8ed 5 лет назад
"Now, this is entirely possible, which should not be possible because... it's stupid" I lost it there. That was just hilarious for some reason. Great tutorials. Great explanations that keep things relevant, to the point, and are easy to follow and understand. Keep up the good work.
@SergioArroyoSailing
@SergioArroyoSailing 3 года назад
fantastic explanation! keep them coming!
@idlevandal69
@idlevandal69 4 года назад
Exceptional tutorial! 🥇
@sirahstacks
@sirahstacks Год назад
Thank you sir this got me more clear on classes and mixins.❤❤❤❤
@rutviktak716
@rutviktak716 3 года назад
Now finally understood when to usr mixins😌. All thanx to you man🙏🏻✌
@DevYahia
@DevYahia 4 года назад
You are awesome, high quality content, thanks!
@stackiller1715
@stackiller1715 3 года назад
Thanks, easy to understand your explanation.
@Ed-yp9mh
@Ed-yp9mh Год назад
Makes sense 🙂. Thank you for this very nice tutorial.
@tedawf
@tedawf 5 лет назад
I love this style of tutorials! Super simple to understand and great use of examples with the occasional hilarious dry commentary. Thank you for taking time to explain so clearly to dart noobs like me and keep up the good work! :)
@ResoCoder
@ResoCoder 5 лет назад
I'm happy you like this format!
@abdelemjid_essaid
@abdelemjid_essaid Год назад
Very nice examples thank you ❤❤❤❤❤❤❤❤
@stheo9084
@stheo9084 3 года назад
simply fantastic explanations
@albanr8028
@albanr8028 3 года назад
Great tutorial !
@sivavenkateshr
@sivavenkateshr 3 года назад
Just awesome .
@user-or7ji5hv8y
@user-or7ji5hv8y 3 года назад
concise and clear.
@nhat4359
@nhat4359 2 года назад
Amazing content!
@NaveenViews
@NaveenViews 3 года назад
Top Notch quality tutorial man. Hat's off to you. I understand every f**king thing.
@RobertWildling
@RobertWildling 5 лет назад
Awesome!!! I learned a lot about birds! ;-) Really!
@saliouseck4263
@saliouseck4263 3 года назад
thx clear explanation
@mustafashaikh7829
@mustafashaikh7829 4 года назад
Nice tutorial nice explanation with mixin and on...😍😍😍😍
@sawood2010
@sawood2010 2 года назад
Best 13 minute video ever.
@hectorprx
@hectorprx 4 года назад
Thanks Nice work
@hammadpervez4568
@hammadpervez4568 4 года назад
you are amazing
@benq400
@benq400 4 года назад
Awesome
@Budapestitest
@Budapestitest 4 года назад
is it a good idea to make an entity component systems where each component is a mixin?
@ajaykotiyal427
@ajaykotiyal427 4 года назад
Thanks for the video. Can a mixin be available to multiple classes? (means multiple classes can be used with "on" keyword ? Pecking on Bird, AirBorneInsects{ ... }
@raul286162
@raul286162 5 лет назад
Please make a video that explain the factory constructor 🙏
@abdur1996
@abdur1996 5 лет назад
Oh crap! My scoped model pattern with multiple mixins and one AppModule suddenly makes sense!
@adeelkiani5400
@adeelkiani5400 5 лет назад
Well explained 👍
@ResoCoder
@ResoCoder 5 лет назад
I'm glad it helped you!
@converter
@converter 4 года назад
is it possible for mixin to have an inherited variable? i it in a test in the same file, but i move the mixin in a separate file - it can't see the mixin variable ??
@faheemahmad3957
@faheemahmad3957 4 года назад
please do more dart andplayslist
@A.A.
@A.A. 4 года назад
Beauuuutiful
@DevLife717
@DevLife717 5 лет назад
Great video! What microphone are you using for your videos? The sound quality is amazing!
@ResoCoder
@ResoCoder 5 лет назад
Thanks! I use Rode NT-1A, most of my previous videos used Auna Mic 900B
@Noone-ig5ui
@Noone-ig5ui 4 года назад
What font are you using in your vscode?
@keweiwang1449
@keweiwang1449 3 года назад
it's really like the trait in scala
@pashute12
@pashute12 4 года назад
thanks. What software do you use to make these videos (ie. how do you add the swallow pic and the talk bubble)
@ResoCoder
@ResoCoder 4 года назад
Premiere Pro for editing and OBS for recording.
@amber.k
@amber.k 3 года назад
But my doubt is we CAN implement too? And do it multiple in case of interfaces. And each class can provide their own implementation with that behaviour method. Then why mixins? I understand the need for composition, other languages do ir too.
@matthiassweertvaegher
@matthiassweertvaegher 3 года назад
This video is so funny 😂
@davidagyakwa288
@davidagyakwa288 3 года назад
is mixing used for only methods or they can be used on properties too
@ankitkharb8806
@ankitkharb8806 4 года назад
if two mixins have same method name then how can we call the desired method
@ruynobrega6918
@ruynobrega6918 4 года назад
11:00 Hi! Just trying to complement here: I think it should be a good moment to say that peck() may have had chirp() as a dependency injection bc not all birds can chirp!
@adityapawar8048
@adityapawar8048 2 года назад
helpful ❤️ it seems u got good knowledge about birds then flutter 😅
@qolbinurwandi
@qolbinurwandi Год назад
may I know., what is you theme though?
@chrise202
@chrise202 Год назад
Nice animal this Swallow thing is. Is it a mamal?
@juanvieira8249
@juanvieira8249 4 года назад
When would you use a mixin instead of an interface? Are they interchangeable? Or is more of a semantics issue? "Mixin is just something the object can do, Interface is a contract, something you know the object will do" ?
@CristianMolina
@CristianMolina 3 года назад
Thx for the video. BTW, only female mosquitoes, and only when producing eggs, are the ones that sucks blood.
@congtoannguyen1940
@congtoannguyen1940 2 года назад
Wait a second, Abstract methods can not have a return body how is your can ? ( pls answer I am very confused now )
@aytunch
@aytunch 5 лет назад
I think you forgot to delete void flutter() from abstract class Bird even when it is with Fluttering. There is duplication, right? 09:19
@ResoCoder
@ResoCoder 5 лет назад
Oh, of course I forgot!
@TheWolverine1984
@TheWolverine1984 3 года назад
I watched a video recently about why OOP is from the devil. And this pretty much demonstrates this. It seems you can do the same functionality in procedural code using just functions without any classes. If you have a fly that needs the functionality of buzzing and a mosquito that needs the same functionality you can just pass them as an argument to a 'buzz' function. And you won't have the luggage of object chains dragging behind you. In this example, you need a class for a fly, a class for a mosquito, an abstract class for flying insects. Not to mention other classes like flying animals that can buzz or whatever else.(I know this is done specifically for this example to illustrate the use of mixins, but those examples do exist in real life) And you need to think about this hierarchy constantly. How come it's not better to have a simple struct that houses the raw data of the fly or bee or whatever you want. Have a simple function 'buzz'. And pass that struct to this function without any classes involved.
@holofox66
@holofox66 5 лет назад
Reso, no more lessons on Kotlin?
@nakamuraaryuna3841
@nakamuraaryuna3841 2 года назад
Hey awesome brother ! anyone from Tenerife and working on flutter or wants to learn how to do it? Hola! Alguien vive en tenerife ?
@akhilessuvarna9182
@akhilessuvarna9182 Год назад
This is how we need our college to teach us.😅
@ferdinandkom5337
@ferdinandkom5337 3 года назад
1:44 what a method name! 😂
@peekpt
@peekpt 5 лет назад
Mixin = merging
@RIAJULISLAMI
@RIAJULISLAMI 4 года назад
It's called Traits in PHP world!. Mixins = Traits😆 PHP Guys...
@marielxenovia3062
@marielxenovia3062 4 года назад
The same thing in Groovy
@kishanbhuta3009
@kishanbhuta3009 3 месяца назад
why cant we just do like :- abstract class Bird extends AirborneInsect { void chirp() { print('chirping'); } }
Далее
🤡Украли У ВСЕХ🤪
00:37
Просмотров 193 тыс.
Top 30 Flutter Tips and Tricks
6:50
Просмотров 545 тыс.
Practical Functional Programming in Dart & Flutter
37:12
Dart in 100 Seconds
2:31
Просмотров 852 тыс.
Don't throw exceptions in C#. Do this instead
18:13
Просмотров 255 тыс.
Top 35 Flutter Widgets
29:29
Просмотров 321 тыс.
Bringing pattern matching to Dart
20:28
Просмотров 38 тыс.