Making Dart a Better Language for UI
medium.com
medium.com
Nothing about this code snippet is "nasty" or "low-level". It is trivially easy to write and understand. It is fully maintainable due to its simplicity and clarity.
It's sad to see that developers think this is somehow bad code. It probably takes a lot of experience to understand why it is totally fine.
Too many developers are lost trading added complexity for aesthetics. One more way to write the same thing. One more thing that will be inconsistent across the codebase. One more thing to learn how to read. It all adds up. All the tooling has to be updated to support this stuff. How will it look and feel in the debugger? (Does Dart even have proper debugger support?)
In the end, all you get is the looks of being declarative while having none of the benefits of being declarative.
Yes, Dart has a debugger, not to mention "hot reload" that's a big selling point for Flutter. The Dart team maintains their own tools and is well aware of the cost of maintaining and improving them.