ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
They use import prefixes (such as prefix0) in generated code to avoid collisions in class names. So if you declare your own class called String, it wouldn't cause conflicts with dart core library because they will have different prefixes
Nice! Thanks for sharing your valuable knowledge.
"Wow, this Flutter tutorial is amazing! 🥳 The explanations are super clear, and the examples make it so much easier to understand.
I'm super happy that you liked it!If you want to motivate me, you can share the channel with your friends!Cheers!
@@imaNNeO I’ll definitely do it.
The best thing is that when macros are fully released, Flutter and dart is going to be changed a lot for the better.
Yes, that's a revolution in Dart and Flutter.
so if i want to access empty or copywith functions so, what can I do?
You can use data_class package that uses macros:github.com/felangel/data_class
Hope riverpod and freeze package can change to macro, It was so annoying to generate file😢
Felix is working on data classes, so I think we don't need to use freeze anymore. Check it out here:github.com/felangel/data_class
Freezed is itself being worked on for macro support as well. Notice that remi published a build as the dataclass package
@@TekExplorer how about riverpod?
They use import prefixes (such as prefix0) in generated code to avoid collisions in class names. So if you declare your own class called String, it wouldn't cause conflicts with dart core library because they will have different prefixes
Nice! Thanks for sharing your valuable knowledge.
"Wow, this Flutter tutorial is amazing! 🥳 The explanations are super clear, and the examples make it so much easier to understand.
I'm super happy that you liked it!
If you want to motivate me, you can share the channel with your friends!
Cheers!
@@imaNNeO I’ll definitely do it.
The best thing is that when macros are fully released, Flutter and dart is going to be changed a lot for the better.
Yes, that's a revolution in Dart and Flutter.
so if i want to access empty or copywith functions so, what can I do?
You can use data_class package that uses macros:
github.com/felangel/data_class
Hope riverpod and freeze package can change to macro, It was so annoying to generate file😢
Felix is working on data classes, so I think we don't need to use freeze anymore. Check it out here:
github.com/felangel/data_class
Freezed is itself being worked on for macro support as well. Notice that remi published a build as the dataclass package
@@TekExplorer how about riverpod?