title: Flutter) I wonder how to remove items from the created list by pressing the button
body: <p>I press the button to add a ListTile widget to the list and output it to the ListViewBuilder.  And I want to delete the list by pressing the delete button on each list.</p>
  <pre><code>  List&lt;ListTile&gt; _todoList = [];
  </code></pre>
  <p>Add List Button</p>
  <pre><code> TextButton.icon(
    onPressed: () {
       //I wrote the text in a TextField in the Dialog Widget.
       //And add ListTile widget to list
       _todoList.add(_addListTile(_textController.text));
    }
  </code></pre>
  <p>Output list</p>
  <pre><code>  ListView.builder(
        itemBuilder: (context, index) {
           return _todoList[index];
        },
                
        itemCount: _todoList.length),
  </code></pre>
  <p>This is a widget that is added to the list. And I want to delete the index of the list by pressing the button on the list tile.</p>
  <pre><code>  _addListTile(String text) {
      return ListTile(
        title: Text(text),
        //menu 
        trailing: PopupMenuButton(
          // icon: const Icon(Icons.more_vert),
          itemBuilder: (context) {
            return [const PopupMenuItem&lt;int&gt;(value: 0, child: Text('Remove'))];
          },
          //Cliked menu 
          onSelected: (item) {
            switch (item) {
              case 0:
                return print('Remove List');
                // return _todoList.remove();
            }
          },
        ),
        onTap: () {},
      );
    }
  </code></pre>
  <p>How can I delete the list with the delete button on this ListTile?</p>
  <p>Thank you.</p>