I'm coming from TypeScript to Dart because of Flutter and It's incredible how I can't do the simplest of things.
I have style?.p? as double? and I would like to read its value or use 0.0 as a default. Like this:
EdgeInsets.all(style?.p != null ? style.p : 0.0))
... but Dart is saying double? can't be assigned to double. Well, I'm using this ternary expression to check for null, but I think Dart is not as smart as TypeScript in type inference.
Any idea?
