ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Generator Functions - Flutter in Focus
ฝัง
- เผยแพร่เมื่อ 14 ส.ค. 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/Flutte...
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!
Every time I come back to this video I learn something new.
Andrew, could you share a situation where a Generator saved your day?
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
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
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.
Thank you so much Andrew. you really resolved mystries this series. Thanks again man
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
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
Finally! My most awaited video on this series.
I love these video series. The highlight of my Friday!
You have given very good and good information about generator function, you have very interesting 🙏🏻
Respect for your knowledge you are really talented man and you wisely tells us synchronization or a synchronization its suberp
You had a great experience with this great type of generator in this episode
Thank you for telling me about these functions. You have told us a very good thing. 🤗🤗🤗
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. 💜💜💜
The features of generator it's functions are awesome and its streams are very fun.
Congrats for the great explanations. Very nice and useful series.
done a lot of excellent things about the generated function
Excellent brother very good Generator function plan has with very good thinking
Learning codes is my hobby i love this lesson
You have done very well about the generator function 👏👏👏
Hi there, Andrew Thanks great lesson, I usually use generators with BLoc design pattern
Dart is brilliantly designed.
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!
My heart just fluttered in anticipation of using a generator
Flutter is genious technology for mobile development! I believe it is a future of mobile development!
Its features and streams are amazing.
Thanks for sharing. After watching it, I have just one question, why is in the fetchDoubles function with async the yield* without await?
yield can be thought of as combination of return and continue
Awesome stuff. Big thanks to Andrew
bam it! that's great a series! we're the dart rockstars! repeat after me...
Thank You!
Final episode of generated function about flutter dart so well
Your features are awesome And intrusted
Hey, i want that Flutter T-Shirt how do i get it? 🤣
i fell elightened with this series (:
Thanks for this Flutter team.
but i got distracted looking at Andrew's hair flopping down slowly
just want to stick it back up
Amazing guy and video. Thank you!
both codes look similar this why i love coding
This episode is very good for generator function, I am interested in it in net function ❤
I feel great generator function is very important for me 😍😍
3:00 why dont we hav this in dart docs lol...(so clear)
What about generators and filters? Introduced to us your best and best kind. Very interesting in Urdu.
Thanks :D this was great
6:08
So, the yield* in async method doesnt need await keyword ?
Is there anyway to get more deep information about async* / sync* / yield / yield*
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?
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
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? :)
Is the animation in this video also produced by Flutter?
Impressive.
await Future :)
Now, I feel realized as an async dev... Thank you :)
very nice
What would be a use case for a synchronous generator? I can understand the use case for async.
THANKS
Flutter + GO ain't a bad combo.
Interesting. Reminds me of the Python generator.
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
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?
A bit off subject but please enlighten me, Is it safe to say that an Iterator defines the way that an Iterable is Iterated ?
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.
THAT one piece of hair tho !!!
I want to know about Generated Junction Flutter Infocus in a very good way
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 know how to do it, because I am a Dart Rockstar!
Thnx you!!!!!
0:44 jumpcut! :p
Will any one tell me what is the best use case for generators?
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
So like a C static?
How to paginate stream builder? Help
I love you
Flutter is how mobile development should've always been
Please make video on chat app
He is my brother
These Concepts are all for Chat apps😂😂😂😂😂😂
This similar to python iteration protocol
Intrusting python generator
where are all the haters? :o
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
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. 🤗🤗🤗