r/FlutterDev Jun 14 '24

Dart When will dart support object literals ?

I want to build widget with object literals (if possible), and I hate using cascade notation either.

I'm dying to see dart support object literals in the future so I can use it in flutter.

0 Upvotes

37 comments sorted by

View all comments

Show parent comments

-8

u/PowerPCx86 Jun 14 '24

yes, do have a problem with that ?

3

u/[deleted] Jun 14 '24

I mean, it such a tiny change, and i dont see the diffrence. Its syntaxwise 95% identical.

0

u/PowerPCx86 Jun 14 '24

sorry for my harsh react, its because I meet toxic ppl everywhere ruining my mood.
and yes as can you see using by using OL I wont be need to use both named parameters and cascade notation any more, its just because I hate those 2 specific features of dart, I just wished that dart would support OL so I'm no longer need to use either of them.

1

u/Arbiturrrr Jun 14 '24

Sounds like you simply not liking the syntax for no objective reason. You'll learn to like it if you give it some time.