Комментарии:
What if i don't have final members in a class and i want to modify the objects' properties, what should i do?
ОтветитьI love the Decoding Flutter series! 💜
On unrelated question though: What tool do you use to create these cute text animations? I mean the ones you use to show the code block changes in these videos.
very clean explanation.....
can you show me how to use regex to validate email and password in dart?
thank you
Great vid!
Ответить🤯🤯🤯🤯
Determine objects equality by comparing hash only, without considering hash collision.
And the equatable library mentioned actually does not determine object equality by comparing hash code as explained in the video, instead it does compare each value of fields.
I’m not being picky, but as a in-depth educational video, I would say this is an unforgivable error!
And this kind of mistake should not be hard to be caught by doing a simple peer review.
Excellent explanation.💯
ОтветитьPerú: Algun ejemplo de como leer codigo de barras mediante PDA o Terminal Android Sunmi L2
ОтветитьHi ! On your Wikipedia page it is mentioned that Flutter supports the Erlang language, I looked through the online documentation and couldn't find anything. How do I integrate Erlang into my Flutter projects? Please kindly help me!
ОтветитьSeriously??? Usin comparing hash codes while equals??? What’s about collisions?
ОтветитьGreat
ОтветитьAWESOME!
ОтветитьCan someone comment down some good recourses ( including book , courses etc )to learn dart and flutter and how to develop a great app overall
i have no prior experience in app development.
i know about little bit about c and c++
equatable is nice package, though it'd be great if there's data class on dart
ОтветитьI still prefer using "Command + n" -> "generate ==() and hashCode", it's way faster
ОтветитьIsn't this a poor language design? If a library can generate that for you, compiler should also be able to do it?
ОтветитьAfter 3 years using Flutter I just realised the logo is a F.
omg...
Equatable is a must use package for all flutter projects, it saves lot of time ❤️
ОтветитьWhat if a TextButton wants to identify as a ScrollableList? or an Apache helicopter?
ОтветитьThanks, I see the link between const constructor in Flutter and that Flutter doesn't rebuild those const widget: the default equality must be used.
Though would it be possible to override equality for a subclass of widget to avoid rebuild even with non const constructor?
❄️ Freezed package handles everything under the hood
ОтветитьAlso please decode bool vs Future<bool>, and what is the use use of Future<bool> when it can't be used to check condition
ОтветитьThis is so cool. But another issue u run into is if you want your class to extend another class. In Dart, a class can't extend more than one classes so it's impossible to extend Equattable and another class.
A solution for this (if u use VSCode) is to install the Dart class generator extension. This would generate the equality code for u
Great one, ty
ОтветитьJust like JS Brother
ОтветитьFor once, the software is actually really useful
ОтветитьFreeeeeeeeeezed
Ответитьreally really cool explanation !! keep it up.
ОтветитьThanks Craig and the Flutter team.
Ответитьthank you very much
i have one important question
how did you animate the code like this :)
is there a specific method or tool to do that?
This video contains wrong information: You should NOT use hash code in the equality operator. Two objects that are equal should have the same hash code, but two objects that are not equal can also share the same hash code. Mathematically, this is due to the pigeon hole principle. The Equatable package also does not use hash code in the equality function.
Hash codes exist to speed up hash maps and other data structures. Finding an object in a map is much easier if you can boil it down to a simple integer value.
Когда мирроринг будет запилен?
ОтветитьWhat about deep nested Maps and Lists? Would equatable understand 2 deep nested maps are same? Does it do some recursion under the hood in order to override its hashmap?
Ответитьgood thing freezed exist!
ОтветитьWhat about hash collisions? If 2 objects have same hash code doesn't mean that they are the same
ОтветитьI love the Flutter T-shirt
ОтветитьVery useful. Thanks!
ОтветитьThanks for freezed package 🫡
ОтветитьVery clean explanation by Flutter Team. I love it. Thank you.
ОтветитьThanks Flutter team!
ОтветитьNot sure I'm gonna use it, but it's amazing to know we can override an operator 😂
ОтветитьIt's odd to see that the newer language Dart even is a greater mess than Java when it comes to such basic concepts.
Ответить:)
ОтветитьThank u 😊
Ответить