jeudi 23 juillet 2020

Basic If Statement Check The Values

If statement doesn't work here. How can i correct it.

          _categoryList = List<Categori>();
          var categories = await _categoryService.readCategories();
          categories.forEach((category) {
            setState(() {
              var textC = _categoryNameController.text;
              if (textC == category['name']) { //The problem is in this line.
                checkCategoryNamesEqual();
              }
            });
          });

Aucun commentaire:

Enregistrer un commentaire