4 ms·
I tried out flutter in the past few weeks and it seems really great, especially compared to the android framework. Dart also seems to fit in really well. But I
by mqus 7y ago
I tried out flutter in the past few weeks and it seems really great, especially compared to the android framework. Dart also seems to fit in really well.
But I do have some criticism for dart. While it's nice that they moved to a static types, they still made every single type nullable. So e.g. if you get a boolean in your function, be aware that it can be true, false and also null. I have my problems with java having nullable objects, but having the primitives also be nullable?
Well, I'm pretty much a beginner, so maybe there are better ways and I still don't know them. But afaik, they weren't mentioned in the brief Dart intro on the flutter page.
Dart does also have some cool things, though: Extensions (for adding interfaces to existing types), explicit getters, async/await and lots of syntactic sugar. Building your widget-tree in dart sometimes looks like a declarative style similar to xml, but far more concise, except that it's really imperative, which is really cool. No long
Component a = new Component();
a.setOnClickHandler(xyz);
a.setColor("green");
b.add(a);
chains anymore!
- wstrange 7y ago> they still made every single type nullable NNBD is almost here: https://github.com/dart-lang/language/blob/master/accepted/future-releases/nnbd/feature-specification.md https://github.com/dart-lang/language/blob/master/accepted/f...