title: flutter: Variable can't be used as a setter because it's final
body: <pre><code>List&lt;TestModel&gt; lists = List();
  
  FutureBuilder&lt;List&lt;TestModel&gt;&gt;(
            future: testNetworkRepository.fetchAlltext(TestModel.testKey),
            builder: (context, snapshot){
              if(snapshot.hasData){
                lists = snapshot.data;
                return Contanier();
              }
            }
  )
  
  Future _editText(int index, String testKey) async {
      await showDialog(
          context: context,
          child: SimpleDialog(
            children: [
              SimpleDialogOption(
                child: TextButton(
                      child: Text(&quot;Edit&quot;),
                      onPressed: (){
                        setState(() {
                          lists[index].text = editTextController.text; &lt;- error occured
                        });
                      },
                    ),
              )
            ],
          )
      );
    }
  </code></pre>
  <p>This is my code. I want to edit <code>lists[index].text</code>.</p>
  <p>But error occured.</p>
  <blockquote>
  <p>'text' can't be used as a setter because it's final.</p>
  </blockquote>
  <p>How can I solve this problem?</p>