lundi 31 août 2020

Is it ME Or Flutter who is wrong?

hello everyone this thing is driving me crazy i have a button on click it will check a simple condition but the problem is it always gives the opposite result !!

          onPressed: () {
            if(1 == 1){
              return applyDiscount(context);
            }
            return _selectClient(context);
          },

1 is definitely = to 1 but the thing is this condition returns _selectClient method !! even if you print the identifier it will return true ,what the hell is going on ?

i tried many other identifiers and all of them gives back false results

Aucun commentaire:

Enregistrer un commentaire