Flutter tip [1]: useful if null operator ??


?? checks if something is null.

If it’s not null it returns it’s own value, but if it is null it returns the value after ??


You can also use it as assignment operator:

Share if thou wilt!

Published by hoornet

Working as Visual C++ developer with IDE from actual previous millennia. As a hobby, working on Android development with Kotlin. Lately trying to move to Flutter.

Leave a comment

Your email address will not be published. Required fields are marked *