cedvdb

Results 212 comments of cedvdb

> the onPressed parameter on [TextButton constructor](https://api.flutter.dev/flutter/material/TextButton/TextButton.html) to make it disabled when null is passed. That one was always weird to me because it's not just the callback but has...

There is the option of making null falsy and others truthy. I'm personally not a fan of that but since you need ideas... I'm also not a fan of adding...

I think what you are saying is that it's less English? ``` final employees = findCompanyEmployees(); final employeesCount = employees.length; if (employeesCount.isOdd) { print('we have an odd number of employees');...

```dart const namespace Colors as Color { red = Color(0xFFFF0000); blue = Color(0xFF0000FF); } ``` I'd prefer a syntax like this although it looks like a variable declaration. ```dart const...

> `operator []` Would this allow tighter tree shaking somehow on maps ? If I recall correctly one of the test I tried a while ago const maps weren't tree...

Ultimately what's the limit here? Does it make the compiler more complex ? Is it human time ? Is it performances ? would this work: ```dart const MyClass(List list) :...

Can something be done to also remove `part of` with the static meta programing advancements ? (like auto generating the `part of` by default if a `part` is found.

Won't the macro be able to add code to arbitrary file ? When it see a `part` (which would be a macro) it can add the `part of` part to...

Is this a proposal that would fit a lot of use cases ? It seems like it's mainly aimed at flutter.

While I don't know the INS and outs of this, I've had the need to use C libraries recently. Adding an automated tool, like ffi gen augmented with maybe behind...