I was looking to something that could replace the cumbersome cluttered ifs that we all need sometimes, but this seems to be even more complicated than keeping my nested ifs. Great video though, congrats
That's what I was thinking. Why replace easy to read code with harder to read code and a dependency on a package that will go out of date or have breaking changes at some point?
@@mohammedgt8102 good question, seems to be a trend in programming in general, using new packages to solve the same problems in a different way, just because it's different and new, not because it's better, it really annoys me
My opinion is totally unnecessary complexity. Honestly I prefer following the KISS principle. I believe that if new developer doesn’t understand the first time that means that something gone wrong. Let’s summarize, I prefer keeping nested if statements instead of that complexity. Btw your tutorials are just amazing!
I got this concept and thank you for explaining, however this code of state class looks like an absolute nightmare. Nice to know about this concept but I'll probably never use it
Same here. Dart is marketing itself as modern and expressive but tbh it looks like a cripple when compared to something truly modern, like Kotlin or Swift.
Hi first of all, awesome video, I am just starting to flutter, I saw your playlist section but I am unable to find a playlist related to beginning with flutter, can you suggest me from which video to start and how to proceed.
It seems that the Dart team is currently gathering information regarding in which direction they should move with algebraic data types. github.com/dart-lang/language/issues/546
Ey man Can you please make a video when it comes out I am new to programming in general so I am watching your videos so that my Subconscious brain Learns
Hello Redo code, instead of all this, why not adding an abstract method called widgetBuilder to WeatherState, and so all subclasses are forced to implement it
These video tutorials are absolutely hidden gems. I wish I discovered them sooner. Thank you.
I was looking to something that could replace the cumbersome cluttered ifs that we all need sometimes, but this seems to be even more complicated than keeping my nested ifs. Great video though, congrats
That's what I was thinking. Why replace easy to read code with harder to read code and a dependency on a package that will go out of date or have breaking changes at some point?
@@mohammedgt8102 good question, seems to be a trend in programming in general, using new packages to solve the same problems in a different way, just because it's different and new, not because it's better, it really annoys me
Haha, there is a seal on the thumbnail because of SEALed classes 😂😁
I SEAL what you did there
That's right!
My opinion is totally unnecessary complexity. Honestly I prefer following the KISS principle. I believe that if new developer doesn’t understand the first time that means that something gone wrong. Let’s summarize, I prefer keeping nested if statements instead of that complexity.
Btw your tutorials are just amazing!
5:37 Well, you could throw an Exception at that point. I think that would be best practice.
I'm new to dart those codes are insane WTFFFFFFFFFFFF
Can you do a tutorial on Dart 3 sealed classes?
I got this concept and thank you for explaining, however this code of state class looks like an absolute nightmare. Nice to know about this concept but I'll probably never use it
Can't like this superb content anymore, perfectly done
To be honest I got to 11:57 and then noped right out of there
Same here. Dart is marketing itself as modern and expressive but tbh it looks like a cripple when compared to something truly modern, like Kotlin or Swift.
Great explanation!
@Reso coder can you do a video of testing block testing with sealed classes 🙏
Freezed is a great alternative for this.
Hi first of all, awesome video, I am just starting to flutter, I saw your playlist section but I am unable to find a playlist related to beginning with flutter, can you suggest me from which video to start and how to proceed.
@dart: It feels u are working in obsolete language after working in swift or kotlin
A lot of boilerplate in class definition. Maybe they will add sealed classes in dart language?
It seems that the Dart team is currently gathering information regarding in which direction they should move with algebraic data types. github.com/dart-lang/language/issues/546
Ey man Can you please make a video when it comes out
I am new to programming in general so I am watching your videos so that my Subconscious brain Learns
Hello Redo code, instead of all this, why not adding an abstract method called widgetBuilder to WeatherState, and so all subclasses are forced to implement it
not useful, as you rarely show the same widget every time
algebraic data types go brrrr
why don't you use pattern in flutter by using sealed class?
Little bit confused.. how private class could be instated and initiated inside mother class ? Is this normal or a specifications in Dart ?
Good video, thanks
Good to know but I really dont like how this looks like. The superEnum you presented in another video felt much better!
Which extention is that turning the ugly fat arrow to a lovely beautiful arrow?
Nevermind, I found it in your extentions video. Install Fira Code font & enable font ligatures. Thanks.
You can do this with the Freezed package now.
I wish there's Sealed generator>>> gud tut!!!
There actually is. I found out about it recently. Check out the sum_types package.
Good tutorial as always but this library is not good at all compared with freezed...
I prefer super enum, was less boilerplate.
No way! 😅 But nice work
So state.join takes positional parameters so it is possible to get this in the wrong order?
there should have to snippet for this.. sealed unions
What about pattern matching? That would be cleaner IMHO, but nor sure if the latest version of Dart supports it.
boiletplate sphagetti
You could just as easily forget to add in one of those private classes, just saying.
Rolly Peres but it's a single place
Is there something we can do about Data Science using Android/Flutter/Swift ?
I'd like to know
Great video, but now the code has added a great amount of unnecessary complexity. It seems no point in using it at all.
I need to play video in 1.25 playback speed 😂
new package called sealed_flutter_bloc, check it out
Or just use freezed like an ordinary programmer. No live template bullshit for this boilerplate
what is the benefit of it?
wow, God, I'd rather us 'if else'
Unnecessary complexity tbh