title: how to replace bool false to true flutter
body: <p>in the case here I want to change the boolean value false to true by clicking Inkwel 1x in the flutter programming language. Where the key that I will change is in the array list for the menu. So when the menu is clicked, the key starts with false, then it will change to true. following my code. what I will change is the favorite key<a href="https://i.stack.imgur.com/7BwWc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7BwWc.png" alt="enter image description here" /></a></p>
  <p>This array data :</p>
  <pre><code>List&lt;menuData&gt; _menuServiceList = [];
  
  
  
      @override
    void initState() {
      _menuServiceList.add(new menuData(
          id: 1, name: 'menu 1', image: 'assets/icon/balancesheet.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 2, name: 'menu 2', image: 'assets/icon/card.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 3, name: 'menu 3', image: 'assets/icon/decrease.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 5, name: 'menu 4', image: 'assets/icon/growth.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 5, name: 'menu 5', image: 'assets/icon/growth.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 6, name: 'menu 6', image: 'assets/icon/officesupplies.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 7, name: 'menu 7', image: 'assets/icon/piechart.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 8, name: 'menu 8', image: 'assets/icon/sharemoney.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 9, name: 'menu 9', image: 'assets/icon/speechbubble.png', favorit: false
      ));
      _menuServiceList.add(new menuData(
          id: 10, name: 'menu 10', image: 'assets/icon/grid.png', favorit: true
      ));
  
      super.initState();
    }
  </code></pre>
  <p>this code clicked button :</p>
  <pre><code>   child: InkWell(
            onTap: (){
              setState(() {
                if (menuData.favorit == false){
                  print(&quot;klik false&quot;);
                  
                }else{
                  print(&quot;klik true&quot;);
                }
              });
            },
            child:  HeaderItem(
              images: menuData.image,
              title: menuData.name,
              textcolor: Colors.grey[600],
            ) ,
          )
  </code></pre>