Built Value Tutorial for Dart & Flutter

preview_player
Показать описание
📗 Get the code from this tutorial 👇👇

Data classes, immutability, simple serialization - this is what Dart does NOT offer right off the bat. While Dart is surely one of the better languages with regards to its simplicity, it currently lacks the support for value types.

When you compare two objects of the same type with identical contents, they will still turn out to be not equal - by default, Dart checks for referential equality, not value equality. Making a copy of an object is also painful - you have so much code to write... And serialization? Oh, even more repetitive code for you!

Well, not with built_value library. It will save you so much time by allowing you to write good quality code without all the repetition.

Go to my website for more information, code examples and articles:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

This tutorial just rocks! Thank you, it was so easy to understand.

sinrostro
Автор

Now i can understand built_value stuffs. You are really great at explaining things.

임창수-cc
Автор

thank you Reso, it's still relevant now.

vietstonedotdev
Автор

Very nice video mate, I am glad i read yesterday that the dart team is implementing something native, hope it will be a bit simpler.

RRits
Автор

I think I just found flutter heaven! Srsly your vids are just EPIC! Ty for sharing!

mohamedchakibmokrane
Автор

Wow! the explanation was simply great! thank you, I will subscribe

alito
Автор

Even with this library there's so much boilerplate for something that is so simple in languages where value types are built in.

usagi
Автор

thanks man, that was so helpful, if somebody have an error at 'Builder' in the generated file, thas probably beacause of a conflict, you can fix that by ' hide Builder ' in the imported file.

powerless_s
Автор

This improving code videos are awesome.

furkanvatandas
Автор

Dude first youa re so clear to explain and also the snippets you gave are awesome, can be used in Android studio?

LeagueRandomPlayer
Автор

thanks Reso Coder .. Ur my master in Flutter :) I'll show u my app when i finished :D

mrdgrtKawHmuNewsApp
Автор

Thanks I Subscribed to u Now I get to see these valuable videos!!!

pradeep
Автор

this package is too fukn complicated and has so much boilerplate code

AhmedAli-jxie
Автор

Very good. I just did not understand the enum stuff.. Why does the default enum from dart does not work? And also, what happens if you try to modify the values of an object created with built_value?

danvilela
Автор

Thanks for the tutorials; I'm on a Mac and for some reason, the command "Flutter packages pub run build_runner watch" did not work for me. It seemed to be running in the terminal but it never created the .g. file. This command did work for me however. "pub run build_runner build"

RR-vioz
Автор

at last I understand some thing about built value

mellatifateh
Автор

Flutter's background execution to connect server when the app is killed or user is not using app
please make any video

cabletvandinternetworldser
Автор

I cannot find the built_value_generator package at the flutter library collections, is it gone? Can you please provide an update.

hasan
Автор

any suggestion on how to deserialize nested json response from http to model classes using build value ?

SKtheGEEK
Автор

then why we have json serializable package????

Riyaz_shaikh_
visit shbcf.ru