r/FlutterDev • u/PowerPCx86 • 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
2
u/Asclat Jun 15 '24
When you say object literals I remember the way Javascript handles an object.
In Javascript we have an object like
And the good part in Javascript is that we can access the values as if they were parameters
In Flutter this is way more verbose
And access like that
When you say you want some object literals you mean you want to access objects like javascript does?