You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agree. Closing as duplicate.
There are many ways to infer that a variable is not null, we currently only promote on direct == null/!= null checks and is NonNullabelType. The #1224 issue can stand in for all the ways we can do more.
When I judge variable not null, Dart allow me use variable as non-nullable:

But when I wrote like this, Dart not understand that variable is non-nullable now:

The text was updated successfully, but these errors were encountered: