GeistHaus
log in · sign up

Non Null Type Inference After Null Checking in Flutter

ybbond.id

It is silly that Flutter cannot dictate from the null check not a moment ago, and infer that a variable is in fact non-nullable. There is only one possible control flow from that point on! Bang operator is risky because there's possibility of neglecting the operator in future refactoring. So I use this approach.

0 pages link to this URL

No pages have linked to this URL yet.