Generator Functions - Flutter in Focus
HTML-код
- Опубликовано: 30 июл 2024
- This is the fifth video in the Flutter in Focus series on asynchronous coding in Dart. In this episode, learn about generator functions (sync and async), how they work, and where to use them.
Async and await → goo.gle/30CzAs2
Asynchrony support → goo.gle/2JOxpum
Flutter in Focus Playlist → goo.gle/FlutterInFocus
Get started with Flutter → flutter.dev
Try a Flutter codelab → goo.gl/d3fHPo
Join the conversation → goo.gl/68oUnb
This video is also subtitled in Chinese, Indonesian, Italian, Japanese, Korean, Portuguese, and Spanish.
Subscribe to the Flutter channel → goo.gle/FlutterYT
#dart #darttopic
I feel like this guy would give good hugs
warm and soft 😅
hahaha
"Oh, wait! I forgot to give you a hug!" - Elf
i feel like the entire flutter team would give good hugs, they seem very nice - or at least all of the ones who show up in the videos like flutter in focus and widget of the week - This guy really feels like flutter's mascot though in my opinion
a little beard rub on the top of your forehead hug
I honestly love everything about this series and this channel. The team is great, you manage to explain everything in a clear and cool way. It really grabs our attention and makes us want to listen. Thank you!
Finally! My most awaited video on this series.
I love these video series. The highlight of my Friday!
Your Last episode is so amazing, you tell me many things about the function. I learned a lot from this video, thank you. 💞💞
What a nice series!! I I have learned a lot. Thank you so much
You had a great experience with this great type of generator in this episode
Congrats for the great explanations. Very nice and useful series.
Andrew, could you share a situation where a Generator saved your day?
Thank you so much Andrew. you really resolved mystries this series. Thanks again man
I love so much the high quality content you are providing on this channel. It is clear, simple, and funny. What else could we possibly ask for
Thank you for the kind message of support, Cyrille! We love having you in the Flutter community 😎
Be sure to check out the "Flutter in Focus" playlist here:
goo.gle/FlutterInFocus
Every time I come back to this video I learn something new.
Respect for your knowledge you are really talented man and you wisely tells us synchronization or a synchronization its suberp
Thank you for telling me about these functions. You have told us a very good thing. 🤗🤗🤗
The features of generator it's functions are awesome and its streams are very fun.
You have done very well about the generator function 👏👏👏
Awesome stuff. Big thanks to Andrew
You have given very good and good information about generator function, you have very interesting 🙏🏻
Brilliant explanation as usual love your tone and delivery, but this one went over my head a little will yield* watch it again
Same here. This kind of coding is something new to me. Also, Im thinking where I could implement this on my real-world application.
done a lot of excellent things about the generated function
The episode proved to be very sorry for me. I learned a lot from this episode, thank you very much, you made this kind of video. 💜💜💜
I'm so glad to have followed this series. With an amazing grasp of asynchronous programming in dart, it's off to write clean code for flutter apps and corresponding business logic. Thank Flutter team
Its features and streams are amazing.
Learning codes is my hobby i love this lesson
Hi there, Andrew Thanks great lesson, I usually use generators with BLoc design pattern
Thanks for sharing. After watching it, I have just one question, why is in the fetchDoubles function with async the yield* without await?
bam it! that's great a series! we're the dart rockstars! repeat after me...
Amazing guy and video. Thank you!
My heart just fluttered in anticipation of using a generator
i fell elightened with this series (:
Excellent brother very good Generator function plan has with very good thinking
Thanks :D this was great
This episode is very good for generator function, I am interested in it in net function ❤
Dart is brilliantly designed.
Thank You!
Your features are awesome And intrusted
You won me with the "Dart rockstar" part! Hahaha
Could you share with us more info about the situation where you needed to use async generators?
I found Flutter BLoC pattern tutorial, and its using async generators
I feel great generator function is very important for me 😍😍
Thanks for this Flutter team.
but i got distracted looking at Andrew's hair flopping down slowly
just want to stick it back up
Final episode of generated function about flutter dart so well
Now, I feel realized as an async dev... Thank you :)
both codes look similar this why i love coding
very nice
yield can be thought of as combination of return and continue
Is there anyway to get more deep information about async* / sync* / yield / yield*
Hey, i want that Flutter T-Shirt how do i get it? 🤣
Flutter is genious technology for mobile development! I believe it is a future of mobile development!
I haven't even heard of generator functions before. I want all the type of things that I can do with dart. Is there a catalog?
6:08
So, the yield* in async method doesnt need await keyword ?
What would be a use case for a synchronous generator? I can understand the use case for async.
THANKS
Is the animation in this video also produced by Flutter?
Interesting. Reminds me of the Python generator.
anyone know where I can get the Dart Side sticker or any flutter skicker's for my laptop
www.redbubble.com/people/rimek/works/25315114-dart-programming-language?cat_context=all-stickers&grid_pos=41&p=sticker&rbs=4dcde76b-0b9f-4555-9f59-3343c542650e&ref=shop_grid&searchTerm=dart
At 4:28 you mentioned that the function turned into quadratic, but I don't see that.
You still call the recursive function in either case once (linear). Using the yield* over the for loop seems to be just a syntactic sugar. You have to iterate through the recursive function's values in either case, yielding all values one by one eventually. Doing that with a yield* or for loop does not seem to make a difference.
I wish you would have elaborated this further, otherwise great video!
Perfect comment. I just noticed the same! And got confused with the explanation at this point!
Thnx you!!!!!
3:00 why dont we hav this in dart docs lol...(so clear)
Since Andrew said he used async generator function only once in last year, so I think it's safe to say that he don't use BLoC pattern while creating flutter apps. So what's your favorite state management pattern, Andrew? :)
What about generators and filters? Introduced to us your best and best kind. Very interesting in Urdu.
Impressive.
await Future :)
A bit off subject but please enlighten me, Is it safe to say that an Iterator defines the way that an Iterable is Iterated ?
Wow, this was awesome! I read the docs but couldn't understand it. This video cleared up my head pretty good! Thank you Flutter Team, you're awesome. Just one question though, the yield* have a name? I mean, what does it "actually" do, putting it into words?
Conceptually, everything is either a Iterable or Stream.
Var X=0;
I just created an infinite Interable that will always return 0;
"single values" I see as one-shot Iterable or stream. after first request they become empty.
Also is there a class that wraps around Stream that provides caching of future, so not every request needs to be a JIT execution? I guees easy enough to make one.
Will any one tell me what is the best use case for generators?
0:44 jumpcut! :p
Flutter + GO ain't a bad combo.
How to paginate stream builder? Help
I love you
So like a C static?
Future (int val) { sleep(const Duration(seconds: 5)); return val * 2; } won't work, because the return type is not of type Future. How can this be solved?
Thanks for this video!
Future(int val) async {.....
I'm not sure that how the recursive functions stops, someone could explain me?
Iterable getRange1(int start, int finish)
sync*{
if (start
When start > finish. The generator stops automatically since no more yield element and function exit
I want to know about Generated Junction Flutter Infocus in a very good way
So yield* is only used in recursive code? Somehow recursive functions always make my heart palpitate with fear :D
No. You don't get the point.
yield* is syntactic sugar for iteration over another generator and yield each element of that generator
I know how to do it, because I am a Dart Rockstar!
Please make video on chat app
He is my brother
These Concepts are all for Chat apps😂😂😂😂😂😂
Flutter is how mobile development should've always been
excuse me sir
i have a problem while installing flutter: i m not b abale to adjust path for flutter in window 8.1 ...??? will u kindly help me ????
Wrong place to ask :P
This similar to python iteration protocol
where are all the haters? :o
Intrusting python generator
I DIDN'T UNDERSTAND
so basically it's yield instead of addokeverybody can go now.
Thank you for telling me about these functions. You have told us a very good thing. 🤗🤗🤗