Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter: what is ??=

Basic question. Yes I know, just read the doc but by asking google, I didn’t find the answer in less than 5 minutes so I think by adding this question, I will help all the following people to find the answer quickly (before GPT become the norm).

So:

x ??= y

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What is it for ?

>Solution :

x ??= y means assign y to x only if x is null.

Find more about assignment-operators

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading