mardi 12 janvier 2021

How to use short if in flutter?

How to use short if in flutter

this code can use:

1 + 1 == 2 ? print('check true') : print('check false');
Ans. print('check true')

but I want to do this:

1 + 1 == 2 ?? print('check true');

Why code can't print check true?

Aucun commentaire:

Enregistrer un commentaire